From 22b1df52bdf8de5d76b422166b945e525bf0a043 Mon Sep 17 00:00:00 2001 From: jiohjung98 Date: Wed, 9 Oct 2024 14:19:26 +0900 Subject: [PATCH] =?UTF-8?q?remove:=2014=EC=84=B8=20=EC=9D=B4=EC=83=81=20?= =?UTF-8?q?=EB=8F=99=EC=9D=98=EB=B6=80=EB=B6=84=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/practice/CategoryPractice.tsx | 2 +- src/components/signup/Step1.tsx | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/components/practice/CategoryPractice.tsx b/src/components/practice/CategoryPractice.tsx index ab0c147..081e442 100644 --- a/src/components/practice/CategoryPractice.tsx +++ b/src/components/practice/CategoryPractice.tsx @@ -77,7 +77,7 @@ const CategoryPractice = () => { ) ) : ( = ({ onNext, onUpdate }) => { const [checks, setChecks] = useState({ privacy: false, service: false, - age: false, marketing: false, }); const [activePage, setActivePage] = useState(null); @@ -29,7 +27,6 @@ const Step1: React.FC = ({ onNext, onUpdate }) => { const newChecks = { privacy: newCheckedState, service: newCheckedState, - age: newCheckedState, marketing: newCheckedState, }; setChecks(newChecks); @@ -55,7 +52,8 @@ const Step1: React.FC = ({ onNext, onUpdate }) => { setActivePage(null); }; - const isNextEnabled = checks.privacy && checks.service && checks.age; + const isNextEnabled = checks.privacy && checks.service; + return (
@@ -93,7 +91,7 @@ const Step1: React.FC = ({ onNext, onUpdate }) => { /> 모두 동의합니다
- {['privacy', 'service', 'age', 'marketing'].map((key, index) => ( + {['privacy', 'service', 'marketing'].map((key, index) => (
= ({ onNext, onUpdate }) => { height={24} /> - {index < 3 ? `[필수] ` : `[선택] `} + {index < 2 ? `[필수] ` : `[선택] `} {key === 'privacy' && '개인정보 수집 / 이용동의'} {key === 'service' && '서비스 이용 동의'} - {key === 'age' && '만 14세 이상입니다'} {key === 'marketing' && '마케팅 메시지 수신 동의'}
@@ -140,10 +137,9 @@ const Step1: React.FC = ({ onNext, onUpdate }) => { {activePage === 'privacy' && } {activePage === 'service' && } - {activePage === 'age' && } {activePage === 'marketing' && }
); }; -export default Step1; +export default Step1; \ No newline at end of file