From 8ecaf6ccd9f13e2a5e30ee4298cc1e0e771c759a Mon Sep 17 00:00:00 2001 From: soyeon Date: Sat, 5 Oct 2024 16:08:32 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=94=94=EC=9E=90=EC=9D=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(route)/(protected)/result/page.tsx | 45 ++++++++++++--------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/src/app/(route)/(protected)/result/page.tsx b/src/app/(route)/(protected)/result/page.tsx index 5ec22f6..8b114d8 100644 --- a/src/app/(route)/(protected)/result/page.tsx +++ b/src/app/(route)/(protected)/result/page.tsx @@ -3,6 +3,7 @@ import Button from "@/app/components/Button"; import ResetIcon from "@public/icons/reset.svg"; +import CloseIcon from "@public/icons/close.svg"; import Image from "next/image"; import { useEffect, useState } from "react"; @@ -65,6 +66,7 @@ const ResultPage = () => { setTimeout(async () => { const canvas = await html2canvas(page as HTMLDivElement, { + useCORS: true, scale: 2, }); canvas.toBlob((blob) => { @@ -192,30 +194,33 @@ const ResultPage = () => { className="w-full flex flex-col justify-center" >
-
- {data.recommendationType === "MORE" ? ( - <> - - 남은 돈:{" "} - {item.change === 0 - ? item.change - : formatWithCommas(item.change.toString())} - 원 - - - ) : ( + {data.recommendationType === "MORE" && ( +
- {item.percentage}% + 남은 돈:{" "} + {item.change === 0 + ? item.change + : formatWithCommas(item.change.toString())} + 원 - )} -
+
+ )}
-

- {item.name}{" "} - {data.recommendationType === "EXPENSIVE" - ? `${item.percentage}%` - : `X${item.quantity}`} +

+ {item.name} + + {data.recommendationType === "EXPENSIVE" ? ( + `${item.percentage}%` + ) : ( + + + + {item.quantity} + + + )} +