메뉴 INFO 및 개인정보제공동의 수정

This commit is contained in:
2025-08-01 14:29:58 +09:00
parent 1f33f55079
commit 312c06be31
4 changed files with 94 additions and 14 deletions
+8 -1
View File
@@ -7,7 +7,14 @@ function InfoTooltip({ text }: { text: string }) {
<i className="diveicon di-info-circle" />
</TooltipTrigger>
<TooltipContent>
<p>{text}</p>
<p>
{text.split("\n").map((line, idx) => (
<span key={idx}>
{line}
{idx !== text.split("\n").length - 1 && <br />}
</span>
))}
</p>
</TooltipContent>
</Tooltip>
);