From b52b8183ce299b5a2d3c3b2f4f8cb94bb443d746 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Mon, 2 Oct 2023 18:07:34 +0200
Subject: refactor(components): rewrite Notice component

* Rename message prop to children prop and set ReactNode as type
---
 src/pages/contact.tsx | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

(limited to 'src/pages/contact.tsx')

diff --git a/src/pages/contact.tsx b/src/pages/contact.tsx
index d187a93..679896c 100644
--- a/src/pages/contact.tsx
+++ b/src/pages/contact.tsx
@@ -158,11 +158,9 @@ const ContactPage: NextPageWithLayout = () => {
           sendMail={submitMail}
           Notice={
             statusMessage ? (
-              <Notice
-                kind={statusKind}
-                message={statusMessage}
-                className={styles.notice}
-              />
+              <Notice className={styles.notice} kind={statusKind}>
+                {statusMessage}
+              </Notice>
             ) : undefined
           }
         />
-- 
cgit v1.2.3

