From c9fe194ed3d4343e741347a9deb861cfa0eb3204 Mon Sep 17 00:00:00 2001
From: robertu <4065233+robertu7@users.noreply.github.com>
Date: Fri, 13 Jan 2023 12:04:23 +0800
Subject: [PATCH] fix(link): revert codemoded by Next.js 13
---
src/components/Notice/NoticeActorAvatar.tsx | 4 +++-
src/components/Notice/NoticeActorName.tsx | 6 +++++-
src/components/Notice/NoticeArticleTitle.tsx | 6 +++++-
src/components/Notice/NoticeCircleName.tsx | 6 +++++-
4 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/src/components/Notice/NoticeActorAvatar.tsx b/src/components/Notice/NoticeActorAvatar.tsx
index 377032799d..b92f4cc344 100644
--- a/src/components/Notice/NoticeActorAvatar.tsx
+++ b/src/components/Notice/NoticeActorAvatar.tsx
@@ -23,7 +23,9 @@ const NoticeActorAvatar = ({
return (
-
+
+
+
)
}
diff --git a/src/components/Notice/NoticeActorName.tsx b/src/components/Notice/NoticeActorName.tsx
index fc9474d4db..148becb01e 100644
--- a/src/components/Notice/NoticeActorName.tsx
+++ b/src/components/Notice/NoticeActorName.tsx
@@ -18,7 +18,11 @@ const NoticeActorName = ({
userName: user.userName || '',
})
- return {user.displayName}
+ return (
+
+ {user.displayName}
+
+ )
}
NoticeActorName.fragments = {
diff --git a/src/components/Notice/NoticeArticleTitle.tsx b/src/components/Notice/NoticeArticleTitle.tsx
index a06e143af4..7397ae5f11 100644
--- a/src/components/Notice/NoticeArticleTitle.tsx
+++ b/src/components/Notice/NoticeArticleTitle.tsx
@@ -22,7 +22,11 @@ const NoticeArticleTitle = ({
})
if (!isBlock) {
- return {article.title}
+ return (
+
+ {article.title}
+
+ )
}
return
diff --git a/src/components/Notice/NoticeCircleName.tsx b/src/components/Notice/NoticeCircleName.tsx
index ec1c468f41..aeb3042785 100644
--- a/src/components/Notice/NoticeCircleName.tsx
+++ b/src/components/Notice/NoticeCircleName.tsx
@@ -20,7 +20,11 @@ const NoticeCircleName = ({
circle,
})
- return {circle.displayName}
+ return (
+
+ {circle.displayName}
+
+ )
}
NoticeCircleName.fragments = {