diff --git a/src/app/author/[author]/page.tsx b/src/app/author/[author]/page.tsx index 71555fe..74e7544 100644 --- a/src/app/author/[author]/page.tsx +++ b/src/app/author/[author]/page.tsx @@ -1,6 +1,7 @@ import { authors, affiliations, nationalities } from '../../db/data' import { Zilla_Slab } from 'next/font/google' import Link from 'next/link' +import { notFound } from 'next/navigation' import { Fragment } from 'react' const zillaSlab = Zilla_Slab({ subsets: ['latin'], weight: ['500'] }) @@ -13,7 +14,7 @@ export default function Page({ const authorData = authors[params.author] // console.log(authorData) if (!authorData) { - return + notFound() } const { name, affiliation, image, nationality, formerAffiliations } = @@ -32,7 +33,10 @@ export default function Page({ {authorData.website ? (
- Visit at: {authorData.website} + Visit at:{' '} + + {authorData.website} +
) : null} diff --git a/src/app/db/data.ts b/src/app/db/data.ts index c87138c..def7a1c 100644 --- a/src/app/db/data.ts +++ b/src/app/db/data.ts @@ -265,6 +265,7 @@ export const authors: Authors = { image: 'https://cdn-icons-png.freepik.com/512/3177/3177440.png', nationality: ['ind', 'eth', 'usa'], bio: 'The king of jank.', + website: 'https://github.com/quantum9Innovation', }, ywu: { name: { diff --git a/src/app/document/view/[slug]/page.d.ts b/src/app/document/view/[slug]/page.d.ts deleted file mode 100644 index 4cc74f3..0000000 --- a/src/app/document/view/[slug]/page.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare module 'unix-timestamp'