dh_demo

DreamHanks demo project
git clone git://git.lair.cx/dh_demo
Log | Files | Refs | README

commit 345c460e6dccdf81e61982e8f869f73c8d025985
parent 1c260dc9436a80dae5a6603e6b8036aadc7df284
Author: Yongbin Kim <iam@yongbin.kim>
Date:   Mon, 30 Jan 2023 11:48:10 +0900

오래된 코드 정리

Signed-off-by: Yongbin Kim <iam@yongbin.kim>

Diffstat:
Mcomponents/layout/Container.tsx | 4++--
Mpages/edit/[slug]/[...path].tsx | 4++--
Mpages/users/signup/[id].tsx | 2+-
3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/components/layout/Container.tsx b/components/layout/Container.tsx @@ -6,7 +6,7 @@ export interface ContainerProps extends HTMLAttributes<HTMLDivElement> { isFluid?: boolean } -export default function Container(props: ContainerProps) { +export default function Container (props: ContainerProps) { const { className, isFluid, ...restProps } = props return ( @@ -14,7 +14,7 @@ export default function Container(props: ContainerProps) { {...classNames( className, styles.container, - isFluid ? styles['is-fluid'] : null + isFluid ? styles['is-fluid'] : null, )} {...restProps} /> diff --git a/pages/edit/[slug]/[...path].tsx b/pages/edit/[slug]/[...path].tsx @@ -15,6 +15,7 @@ import { getSlugAndPath } from '@/lib/utils/wiki' import { GetServerSideProps } from 'next' import { useRouter } from 'next/router' import { useEffect } from 'react' +import toast from 'react-hot-toast' export interface WikiEditPageProps { wiki: WikiInfo @@ -68,10 +69,9 @@ export default function WikiEditPage (props: WikiEditPageProps) { const [slug, path] = getSlugAndPath(router) // 다른 사용자가 문서를 편집했을 때 - // useEffect(() => { return socket.on('pageChange', ({ payload }) => { - + toast('문서가 편집되었습니다.') }) }, []) diff --git a/pages/users/signup/[id].tsx b/pages/users/signup/[id].tsx @@ -27,7 +27,7 @@ export const getServerSideProps: GetServerSideProps<PageProps> = async (context) } } - const signUpRequest = await getUnconfirmedSignupRequest(id) + const signUpRequest = await getUnconfirmedSignupRequest([id]) if (signUpRequest == null) { return { notFound: true,