From 04aa2218de286f6f49d6567d01a1a7ff35273c8d Mon Sep 17 00:00:00 2001 From: Ane Date: Tue, 27 Aug 2024 14:31:46 +0200 Subject: [PATCH] refactor: improve code formatting in InformationMessage component --- src/app/(main)/page.tsx | 4 +- .../informationMessage/InformationMessage.tsx | 15 ++--- .../informationMessage.module.css | 57 +++++++++---------- 3 files changed, 39 insertions(+), 37 deletions(-) diff --git a/src/app/(main)/page.tsx b/src/app/(main)/page.tsx index 4afb00d95..16efa6fc7 100644 --- a/src/app/(main)/page.tsx +++ b/src/app/(main)/page.tsx @@ -47,7 +47,9 @@ const Home = async () => { return ( ); diff --git a/src/blog/components/informationMessage/InformationMessage.tsx b/src/blog/components/informationMessage/InformationMessage.tsx index 2e107e8df..1ba62f69a 100644 --- a/src/blog/components/informationMessage/InformationMessage.tsx +++ b/src/blog/components/informationMessage/InformationMessage.tsx @@ -43,13 +43,14 @@ const InformationMessage = ({
{title} - - {body.split('\n').map((line, index) => ( - - {line} -
-
- ))}
+ + {body.split("\n").map((line, index) => ( + + {line} +
+
+ ))} +
{button && (