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/blog/index.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src/pages/blog/index.tsx')

diff --git a/src/pages/blog/index.tsx b/src/pages/blog/index.tsx
index 7f6c540..7eef2f0 100644
--- a/src/pages/blog/index.tsx
+++ b/src/pages/blog/index.tsx
@@ -196,12 +196,13 @@ const BlogPage: NextPageWithLayout<BlogPageProps> = ({
           <Notice
             // eslint-disable-next-line react/jsx-no-literals -- Kind allowed
             kind="error"
-            message={intl.formatMessage({
+          >
+            {intl.formatMessage({
               defaultMessage: 'Failed to load.',
               description: 'BlogPage: failed to load text',
               id: 'C/XGkH',
             })}
-          />
+          </Notice>
         ) : null}
       </PageLayout>
     </>
-- 
cgit v1.2.3

