From 07f78f9280cf7cce93054128d1a16d472248f544 Mon Sep 17 00:00:00 2001 From: "david0218@naver.com" Date: Fri, 22 Sep 2023 00:44:41 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20qr=EC=BD=94=EB=93=9C=20=EC=97=AC?= =?UTF-8?q?=EB=9F=AC=EA=B0=9C=EC=9D=BC=EB=95=8C=20=EC=83=89=EC=83=81=20?= =?UTF-8?q?=EC=B4=88=EA=B8=B0=ED=99=94=20=EC=95=88=EB=90=98=EB=8A=94=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ticket/src/components/mypage/Ticket/QrCode.tsx | 8 ++++++++ .../src/components/mypage/Ticket/QrSheetContainer.tsx | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/apps/ticket/src/components/mypage/Ticket/QrCode.tsx b/apps/ticket/src/components/mypage/Ticket/QrCode.tsx index 9ea1974e..2f353cae 100644 --- a/apps/ticket/src/components/mypage/Ticket/QrCode.tsx +++ b/apps/ticket/src/components/mypage/Ticket/QrCode.tsx @@ -45,6 +45,7 @@ const Qrcode = ({ qrCode.update({ data: uuid, }); + if (status !== '입장 전') { qrCode.update({ cornersDotOptions: { color: '#e3e4e8' }, @@ -52,6 +53,13 @@ const Qrcode = ({ dotsOptions: { color: '#e3e4e8' }, }); } + + return () => + qrCode.update({ + cornersDotOptions: { color: 'black' }, + cornersSquareOptions: { color: 'black' }, + dotsOptions: { color: 'black' }, + }); }, [uuid, status]); const handleReload = () => { diff --git a/apps/ticket/src/components/mypage/Ticket/QrSheetContainer.tsx b/apps/ticket/src/components/mypage/Ticket/QrSheetContainer.tsx index 5c54d46d..68a8b181 100644 --- a/apps/ticket/src/components/mypage/Ticket/QrSheetContainer.tsx +++ b/apps/ticket/src/components/mypage/Ticket/QrSheetContainer.tsx @@ -54,7 +54,11 @@ const QrSheetContainer = ({ {title} {/*