aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/templates/page/page-layout.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/templates/page/page-layout.tsx')
-rw-r--r--src/components/templates/page/page-layout.tsx16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/components/templates/page/page-layout.tsx b/src/components/templates/page/page-layout.tsx
index dfd9353..ee3fd3a 100644
--- a/src/components/templates/page/page-layout.tsx
+++ b/src/components/templates/page/page-layout.tsx
@@ -281,11 +281,9 @@ export const PageLayout: FC<PageLayoutProps> = ({
depth={2}
Notice={
commentStatus?.isReply ? (
- <Notice
- className={styles.notice}
- kind={commentStatus.kind}
- message={commentStatus.message}
- />
+ <Notice className={styles.notice} kind={commentStatus.kind}>
+ {commentStatus.message}
+ </Notice>
) : null
}
saveComment={saveComment}
@@ -307,11 +305,9 @@ export const PageLayout: FC<PageLayoutProps> = ({
title={commentFormTitle}
Notice={
commentStatus && !commentStatus.isReply ? (
- <Notice
- className={styles.notice}
- kind={commentStatus.kind}
- message={commentStatus.message}
- />
+ <Notice className={styles.notice} kind={commentStatus.kind}>
+ {commentStatus.message}
+ </Notice>
) : null
}
/>