diff --git a/components/Segment.tsx b/components/Segment.tsx index 3b4b6ad..682465a 100644 --- a/components/Segment.tsx +++ b/components/Segment.tsx @@ -1,7 +1,7 @@ const Segment = ({ children, className = '' }: SegmentProps): JSX.Element => { return (
{children}
diff --git a/pages/categories/[category].tsx b/pages/categories/[category].tsx index 7233c72..22bb815 100644 --- a/pages/categories/[category].tsx +++ b/pages/categories/[category].tsx @@ -7,6 +7,7 @@ import { BotList } from '@types' import { botCategoryListArgumentSchema } from '@utils/Yup' import NotFound from 'pages/404' import { useState } from 'react' +import { useRouter } from 'next/router' const Hero = dynamic(() => import('@components/Hero')) const Advertisement = dynamic(() => import('@components/Advertisement')) @@ -15,10 +16,13 @@ const ResponsiveGrid = dynamic(() => import('@components/ResponsiveGrid')) const BotCard = dynamic(() => import('@components/BotCard')) const Container = dynamic(() => import('@components/Container')) const Paginator = dynamic(() => import('@components/Paginator')) +const Segment = dynamic(() => import('@components/Segment')) +const Markdown = dynamic(() => import('@components/Markdown')) const NSFW = dynamic(() => import('@components/NSFW')) const Category: NextPage = ({ data, query }) => { const [ nsfw, setNSFW ] = useState(localStorage.nsfw) + const router = useRouter() if(!data || data.data.length === 0 || data.totalPage < Number(query.page)) return return <> @@ -26,6 +30,12 @@ const Category: NextPage = ({ data, query }) => { { query.category === 'NSFW' && !nsfw ? setNSFW(true)} onDisableClick={() => localStorage.nsfw = true} /> : + { + router.query.category === '빗금 명령어' && +

빗금 명령어

+ +
+ } { diff --git a/pages/categories/index.tsx b/pages/categories/index.tsx index 3b6d28e..80595ba 100644 --- a/pages/categories/index.tsx +++ b/pages/categories/index.tsx @@ -18,7 +18,7 @@ const Categories:NextPage = () => { { categories.map(t => { - { '빗금 명령어': + { '빗금 명령어': }[t] ??