diff --git a/apps/home/next-env.d.ts b/apps/home/next-env.d.ts index 4f11a03..40c3d68 100644 --- a/apps/home/next-env.d.ts +++ b/apps/home/next-env.d.ts @@ -2,4 +2,4 @@ /// // NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. +// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information. diff --git a/apps/home/package.json b/apps/home/package.json index 5ed9918..bb464fb 100644 --- a/apps/home/package.json +++ b/apps/home/package.json @@ -19,7 +19,7 @@ "@next/mdx": "^14.2.5", "dayjs": "^1.11.11", "framer-motion": "^11.2.4", - "next": "^14.1.1", + "next": "^14.2.11", "next-mdx-remote": "^5.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/apps/wiki/app/_shared/components/Docs/Docs.tsx b/apps/wiki/app/_shared/components/Docs/Docs.tsx deleted file mode 100644 index cd7b151..0000000 --- a/apps/wiki/app/_shared/components/Docs/Docs.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import { Readme } from '@/_shared' - -const WIKI_URI = 'https://raw.githubusercontent.com/wiki/hamsurang/origin' -const ENCODED_DASH = '%E2%80%90' - -export const Docs = async ({ id }: { id: string }) => { - const res = await fetch(`${WIKI_URI}/${id.replace(/-/g, ENCODED_DASH)}.md`) - const wiki = await res.text() - - return -} diff --git a/apps/wiki/app/_shared/components/Docs/index.ts b/apps/wiki/app/_shared/components/Docs/index.ts deleted file mode 100644 index 22327ad..0000000 --- a/apps/wiki/app/_shared/components/Docs/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './Docs' diff --git a/apps/wiki/app/_shared/components/Readme/index.tsx b/apps/wiki/app/_shared/components/Readme/index.tsx deleted file mode 100644 index 3683da5..0000000 --- a/apps/wiki/app/_shared/components/Readme/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export * from './Readme' diff --git a/apps/wiki/app/_shared/components/SideNav/SideNav.tsx b/apps/wiki/app/_shared/components/SideNav/SideNav.tsx index 1288411..0c79740 100644 --- a/apps/wiki/app/_shared/components/SideNav/SideNav.tsx +++ b/apps/wiki/app/_shared/components/SideNav/SideNav.tsx @@ -1,16 +1,13 @@ import type { NAV_ITEMS } from '@/_shared/constants' import { cn } from '@hamsurang/ui' import Link from 'next/link' -import { useSearchParams } from 'next/navigation' export interface SideNavProps { items: typeof NAV_ITEMS + docsId: string | null } -export const SideNav = ({ items }: SideNavProps) => { - const { get } = useSearchParams() - const docsId = get('id') - +export const SideNav = ({ docsId, items }: SideNavProps) => { return (