From 25858a5e2de1c6be4ef92f7a5beeffc58e767c82 Mon Sep 17 00:00:00 2001 From: subinsong01 Date: Tue, 5 Nov 2024 01:21:03 +0900 Subject: [PATCH] =?UTF-8?q?design(#7):=20=ED=8D=BC=EB=B8=94=EB=A6=AC?= =?UTF-8?q?=EC=8B=B1=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/Footer.jsx | 2 +- src/pages/MyPage/RegisterMissing.jsx | 16 ++++------------ src/pages/RegisterPage/UserRegisterPage.jsx | 2 +- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/src/components/common/Footer.jsx b/src/components/common/Footer.jsx index 5fa45ac..f2115a6 100644 --- a/src/components/common/Footer.jsx +++ b/src/components/common/Footer.jsx @@ -38,7 +38,7 @@ const Footer = () => { key: 'community', image: activeTab === '/community' ? images.communityIconOn : images.communityIconOff, text: '집사생활', - link: '/userRegister/:userId', + link: '/community', }, ]; diff --git a/src/pages/MyPage/RegisterMissing.jsx b/src/pages/MyPage/RegisterMissing.jsx index d836a4c..dd42505 100644 --- a/src/pages/MyPage/RegisterMissing.jsx +++ b/src/pages/MyPage/RegisterMissing.jsx @@ -15,14 +15,6 @@ const Container = styled.div` flex-direction: column; `; -const SubContainer = styled.div` - display: flex; - flex-direction: column; - margin-top: 5%; - margin-left: 5%; - margin-right: 5%; -`; - const MapContainer = styled.div` width: 100%; height: 250px; @@ -144,7 +136,7 @@ const RegisterButton = styled.button` text-align: center; border-radius: 8px; margin-top: 10px; - margin-bottom: 20px; + margin-bottom: 80px; &:hover { background-color: #FF6E00; @@ -256,11 +248,10 @@ const RegisterMissing = () => { } }); }); - - // 초기 위치의 주소 가져오기 + searchAddrFromCoords(new window.kakao.maps.LatLng(latitude, longitude), function(result, status) { if (status === window.kakao.maps.services.Status.OK) { - const addr = result[0].road_address ? result[0].road_address.address_name : result[0].address.address_name; + const addr = result[0].road_adㅊdress ? result[0].road_address.address_name : result[0].address.address_name; setLocationInput(`${addr}`); } }); @@ -330,6 +321,7 @@ const RegisterMissing = () => { setPhone(formattedValue); }; + return ( diff --git a/src/pages/RegisterPage/UserRegisterPage.jsx b/src/pages/RegisterPage/UserRegisterPage.jsx index ce6a7f6..36a9a81 100644 --- a/src/pages/RegisterPage/UserRegisterPage.jsx +++ b/src/pages/RegisterPage/UserRegisterPage.jsx @@ -386,7 +386,7 @@ const UserRegisterPage = () => { newToggleStates[index] = !newToggleStates[index]; setToggleStates(newToggleStates); }; - + return (