From 6a76e1aee9328c8d5430a9076846f6bec1de1441 Mon Sep 17 00:00:00 2001 From: Jeonghyun Date: Thu, 19 Sep 2024 00:47:55 +0900 Subject: [PATCH 01/45] =?UTF-8?q?#309=20feat:=20=EC=95=88=EB=82=B4=20?= =?UTF-8?q?=EB=A9=94=EC=9D=BC=20=EB=8F=99=EC=9D=98=20=EC=B9=B8=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PageComponents/RegisterPage.style.js | 25 +++++++++++++++++++ .../PageComponents/RegisterSecond.jsx | 22 +++++++++++++++- .../PageComponents/RegisterSecond.jsx | 22 +++++++++++++++- 3 files changed, 67 insertions(+), 2 deletions(-) diff --git a/src/pages/RegisterPage/PageComponents/RegisterPage.style.js b/src/pages/RegisterPage/PageComponents/RegisterPage.style.js index 00558e92..0b37ffc1 100644 --- a/src/pages/RegisterPage/PageComponents/RegisterPage.style.js +++ b/src/pages/RegisterPage/PageComponents/RegisterPage.style.js @@ -141,3 +141,28 @@ export const MainButton = styled.button` color: #f2f2f2; } `; + +export const Callout = styled.div` + display: flex; + align-items: center; + border: none; + border-radius: 8px; + background-color: #f8f8f8; + padding: 14px 18px; + width: 100%; + font-size: 14px; + color: #000; + outline: none; + transition: border-color 0.3s ease; + box-sizing: border-box; + gap: 10px; + + &::placeholder { + color: #aaa; + } +`; + +export const CheckBox = styled.input` + width: 18px; + height: 18px; +`; diff --git a/src/pages/RegisterPage/PageComponents/RegisterSecond.jsx b/src/pages/RegisterPage/PageComponents/RegisterSecond.jsx index 1c26d7f3..f10f0d95 100644 --- a/src/pages/RegisterPage/PageComponents/RegisterSecond.jsx +++ b/src/pages/RegisterPage/PageComponents/RegisterSecond.jsx @@ -47,6 +47,7 @@ const RegisterSecond = () => { useRecoilState(minCompletionTimes); const [eventSchedules, setEventSchedules] = useRecoilState(eventScheduleList); const [eventAddress, setEventAddress] = useState(''); + const [isChecked, setIsChecked] = useState(false); const navigate = useNavigate(); const resetAllStates = useResetAllStates(); @@ -68,6 +69,10 @@ const RegisterSecond = () => { setMinCompletionTimesValue(value); }; + const handleCheckboxChange = (event) => { + setIsChecked(event.target.checked); + }; + const handleDownload = async (e) => { e.preventDefault(); try { @@ -140,6 +145,8 @@ const RegisterSecond = () => { completionTimes: minCompletionTimesValue, eventSchedules: formatSchedules(eventSchedules), eventUrl: eventAddress, + alarmRequest: isChecked, + alarmResponse: isChecked, }; formData.append('eventDetail', JSON.stringify(event)); @@ -152,11 +159,12 @@ const RegisterSecond = () => { 'Content-Type': 'multipart/form-data', }, }); - setShowModal(true); + alert('행사가 등록되었습니다!'); } catch (error) { alert('행사가 제대로 등록되지 않았습니다.'); navigate('/register'); } finally { + setShowModal(true); setStep(1); resetAllStates(); } @@ -244,6 +252,18 @@ const RegisterSecond = () => { /> + + 안내 메일 발송 여부 + + + 안내 메일 발송에 동의합니다. + + +