From 5203dba8f62870c7c178c820ebbfc4d62c564735 Mon Sep 17 00:00:00 2001 From: "jiwon93.son" Date: Tue, 30 Jan 2024 14:45:39 +0900 Subject: [PATCH] =?UTF-8?q?[TPopUp]=20=EB=B6=80=EB=B6=84=20=EC=88=98?= =?UTF-8?q?=EC=A0=95,=20=EC=8A=A4=ED=83=80=EC=9D=BC=20=EB=B0=8F=20props=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/TPopUp/TPopUp.jsx | 30 +++++++++++++++---- .../src/components/TPopUp/TPopUp.module.less | 30 +++++++++++++++---- 2 files changed, 50 insertions(+), 10 deletions(-) diff --git a/com.twin.app.shoptime/src/components/TPopUp/TPopUp.jsx b/com.twin.app.shoptime/src/components/TPopUp/TPopUp.jsx index bcace15c..65674c27 100644 --- a/com.twin.app.shoptime/src/components/TPopUp/TPopUp.jsx +++ b/com.twin.app.shoptime/src/components/TPopUp/TPopUp.jsx @@ -34,8 +34,10 @@ export default function TPopUp({ title, text, options, + useOptionImg, selectedOptionIdx, setSelectedOptionIdx, + ...rest }) { useEffect(() => { if (KINDS.indexOf(kind) < 0) { @@ -47,8 +49,7 @@ export default function TPopUp({ Spotlight.focus("tPopupBtn1"); Spotlight.focus("tPopupBtn2"); // TODO - // console.log("selectedOptionIndex", selectedOptionIndex); - // if (options) Spotlight.focus(`option_1`); + // if (options) Spotlight.focus(`option_${selectedOptionIdx}`) }, []); const _onClose = useCallback( @@ -88,15 +89,34 @@ export default function TPopUp({ )} {options && ( -