From a799aef233a14e94cb97c6e0b0f3d0eff2fd71e0 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Sat, 6 May 2023 13:43:05 +0800 Subject: [PATCH] =?UTF-8?q?matery=20=E5=85=AC=E5=91=8A=E8=BE=B9=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/matery/components/Announcement.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/themes/matery/components/Announcement.js b/themes/matery/components/Announcement.js index c4d99f97..d1ad1ac3 100644 --- a/themes/matery/components/Announcement.js +++ b/themes/matery/components/Announcement.js @@ -8,22 +8,22 @@ const Announcement = ({ notice }) => { if (!notice) { return <> } - return <> + return
-
-
- {locale.COMMON.ANNOUNCEMENT} + className="mb-4 p-2 overflow-auto shadow-md border dark:border-black rounded-xl bg-white dark:bg-hexo-black-gray"> +
+
+ {locale.COMMON.ANNOUNCEMENT} +
+ {notice && (
+ +
)}
- {notice && (
- -
)} -
- +
} export default Announcement