diff --git a/app/blog/[page]/page.tsx b/app/blog/[page]/page.tsx index 0ae9a4c..60b6db7 100644 --- a/app/blog/[page]/page.tsx +++ b/app/blog/[page]/page.tsx @@ -9,8 +9,13 @@ export async function generateStaticParams() { return await getPostListPath(); } -export default async function Page({ params }: { params: { page: string } }) { - const page = Number(params.page); +export default async function Page({ + params, +}: { + params: Promise<{ page: string }>; +}) { + const { page: pageNumber } = await params; + const page = Number(pageNumber); if (!page) notFound(); const allPosts = await postLists(); diff --git a/app/g/[id]/page.tsx b/app/g/[id]/page.tsx index 0ed42fb..1594eb0 100644 --- a/app/g/[id]/page.tsx +++ b/app/g/[id]/page.tsx @@ -15,12 +15,13 @@ dayjs.extend(relativeTime); export default async function Page({ params, }: { - params: { + params: Promise<{ id: string; - }; + }>; }) { - if (typeof params.id !== 'string') notFound(); - const gist = await getSignalGist(params.id); + const { id } = await params; + if (typeof id !== 'string') notFound(); + const gist = await getSignalGist(id); if (!gist || !gist.files) notFound(); return ( @@ -32,7 +33,7 @@ export default async function Page({ priority width={32} height={32} - className="rounded-full " + className="rounded-lg-full " />

diff --git a/app/g/loading.tsx b/app/g/loading.tsx index 9e683ab..17371e5 100644 --- a/app/g/loading.tsx +++ b/app/g/loading.tsx @@ -7,7 +7,7 @@ const loading = () => {
@@ -21,7 +21,7 @@ const loading = () => {
@@ -29,7 +29,7 @@ const loading = () => {
@@ -40,7 +40,7 @@ const loading = () => {
diff --git a/app/gists/[page]/page.tsx b/app/gists/[page]/page.tsx index 812e3fe..40da645 100644 --- a/app/gists/[page]/page.tsx +++ b/app/gists/[page]/page.tsx @@ -8,11 +8,12 @@ export const revalidate = 600; export default async function Page({ params, }: { - params: { + params: Promise<{ page: string; - }; + }>; }) { - const page = Number(params.page); + const { page: pageNumber } = await params; + const page = Number(pageNumber); if (!page) notFound(); const gists = await getGists(page); if (!gists) notFound(); diff --git a/app/p/[slug]/page.tsx b/app/p/[slug]/page.tsx index e51fcc7..856ce8d 100644 --- a/app/p/[slug]/page.tsx +++ b/app/p/[slug]/page.tsx @@ -25,11 +25,11 @@ export async function generateStaticParams() { const Page = async ({ params, }: { - params: { + params: Promise<{ slug: string; - }; + }>; }) => { - const slug = params.slug; + const { slug } = await params; if (!slug) notFound(); const post = await readSinglePost(slug); diff --git a/components/mdx/paragraph.tsx b/components/mdx/paragraph.tsx index 3e95ad3..8e5b56b 100644 --- a/components/mdx/paragraph.tsx +++ b/components/mdx/paragraph.tsx @@ -18,7 +18,7 @@ const Paragraph = (props: HTMLAttributes) => { if (typeof child.type !== 'object') return null; const childType = child.type as ChildType; if (!childType?.type) return null; - if (!child.props?.href) return null; + // if (!child.props?.href) return null; const props = child.props as { href: string }; return props.href; }); diff --git a/components/pages/blog/post-card-loading.tsx b/components/pages/blog/post-card-loading.tsx index bbce19a..4bebe59 100644 --- a/components/pages/blog/post-card-loading.tsx +++ b/components/pages/blog/post-card-loading.tsx @@ -5,7 +5,7 @@ const PostCardLoading = () => { return (
@@ -53,7 +53,7 @@ const GistsCode = () => { diff --git a/components/pages/gists/gists-code.module.css b/components/pages/gists/gists-code.module.css index 4e40be2..2823cbc 100644 --- a/components/pages/gists/gists-code.module.css +++ b/components/pages/gists/gists-code.module.css @@ -1,5 +1,5 @@ .wrapper { - @apply overflow-hidden rounded-lg; + @apply overflow-hidden rounded; @apply mb-8 shadow-card; font-size: 16px; } diff --git a/components/pages/gists/gists-code.tsx b/components/pages/gists/gists-code.tsx index 61254ed..11596d8 100644 --- a/components/pages/gists/gists-code.tsx +++ b/components/pages/gists/gists-code.tsx @@ -47,21 +47,21 @@ const GistsCode = ({ file, showFileName = false }: Props) => { className={clsx( 'box-border inline-block', 'w-[13px] h-[13px] mr-2', - 'rounded-full bg-[#ce5347]', + 'rounded-lg-full bg-[#ce5347]', )} >
diff --git a/components/pages/gists/gists-skeleton.tsx b/components/pages/gists/gists-skeleton.tsx index a587f74..a82e31a 100644 --- a/components/pages/gists/gists-skeleton.tsx +++ b/components/pages/gists/gists-skeleton.tsx @@ -8,7 +8,7 @@ const GistSkeleton = () => {
{
diff --git a/components/pages/gists/user-info.tsx b/components/pages/gists/user-info.tsx index 394d92a..e49aff6 100644 --- a/components/pages/gists/user-info.tsx +++ b/components/pages/gists/user-info.tsx @@ -27,7 +27,7 @@ const UserInfo = async () => { src={avatar} alt="Avatar" priority - className="rounded-full" + className="rounded-lg-full" />
diff --git a/components/pages/nav-bar.tsx b/components/pages/nav-bar.tsx index a58c9ad..edbcd3b 100644 --- a/components/pages/nav-bar.tsx +++ b/components/pages/nav-bar.tsx @@ -106,7 +106,7 @@ const HeadBar = () => {