From a54e382283245c60cae509485be9d973a26bca19 Mon Sep 17 00:00:00 2001 From: Xuan Date: Fri, 28 Apr 2023 17:15:06 +0800 Subject: [PATCH] fix hydration issue in #4 (#5) Co-authored-by: Xuan --- app/projects/page.tsx | 74 +++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 38 deletions(-) diff --git a/app/projects/page.tsx b/app/projects/page.tsx index 100ee64..38d9f78 100644 --- a/app/projects/page.tsx +++ b/app/projects/page.tsx @@ -55,47 +55,45 @@ export default async function ProjectsPage() {
- -
-
-
- {featured.date ? ( - - ) : ( - SOON - )} -
- - {" "} - {Intl.NumberFormat("en-US", { notation: "compact" }).format( - views[featured.slug] ?? 0, - )} - +
+
+
+ {featured.date ? ( + + ) : ( + SOON + )}
+ + {" "} + {Intl.NumberFormat("en-US", { notation: "compact" }).format( + views[featured.slug] ?? 0, + )} + +
-

+ {featured.title} +

+

+ {featured.description} +

+
+ - {featured.title} - -

- {featured.description} -

-
- - Read more - -
-
- + Read more + +
+