Skip to content

Commit 97f3cc6

Browse files
author
jaehyeokHan
committed
feat: line break handling in notice messages
1 parent 92d7a97 commit 97f3cc6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/pages/NaverPage/components/Notice

src/pages/NaverPage/components/Notice/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const Notice = () => {
1515
<AlertTitle className="font-bold text-[#0475F5]">
1616
{recentAnnounce?.title}
1717
</AlertTitle>
18-
<AlertDescription className="text-[#2b85ec]">
19-
{recentAnnounce?.content}
18+
<AlertDescription className="whitespace-pre-line text-[#2b85ec]">
19+
{recentAnnounce?.content.replace(/\. /g, '.\n')}
2020
</AlertDescription>
2121
</Alert>
2222
</div>

0 commit comments

Comments
 (0)