diff --git a/src/app/globals.css b/src/app/globals.css
index e586385..dd1aa32 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -50,6 +50,7 @@
}
}
+
.find-container {
display: flex;
width: 100%;
diff --git a/src/app/signup/page.tsx b/src/app/signup/page.tsx
index 4e3ea92..e40289d 100644
--- a/src/app/signup/page.tsx
+++ b/src/app/signup/page.tsx
@@ -23,14 +23,14 @@ const SignupPage: React.FC = () => {
loginType: 'local'
});
- const [minHeightClass, setMinHeightClass] = useState('min-h-screen');
+ const [maxHeightClass, setmaxHeightClass] = useState('max-h-screen');
useEffect(() => {
const handleResize = () => {
if (window.innerWidth < 640) {
- setMinHeightClass('min-h-[calc(100vh-100px)]');
+ setmaxHeightClass('max-h-[calc(100vh-75.5px)]');
} else {
- setMinHeightClass('min-h-screen');
+ setmaxHeightClass('max-h-screen');
}
};
handleResize();
@@ -79,7 +79,7 @@ const SignupPage: React.FC = () => {
};
return (
-
+
{currentStep === 1 && (
handleUpdate(data)} />
)}
diff --git a/src/components/signup/Step1.tsx b/src/components/signup/Step1.tsx
index b7d9b98..ddf208f 100644
--- a/src/components/signup/Step1.tsx
+++ b/src/components/signup/Step1.tsx
@@ -124,7 +124,7 @@ const Step1: React.FC = ({ onNext, onUpdate }) => {
-
+
비밀번호 확인
= ({ onNext, onUpdate }) => {
diff --git a/src/components/signup/Step4.tsx b/src/components/signup/Step4.tsx
index 6f25f47..3a42091 100644
--- a/src/components/signup/Step4.tsx
+++ b/src/components/signup/Step4.tsx
@@ -110,7 +110,7 @@ const Step4: React.FC
= ({ onNext, onUpdate }) => {
모아가이드에서 사용할
상세정보를 입력해주세요
-
+
닉네임
= ({ onNext, onUpdate }) => {
/>
-
+
생년월일
= ({ onNext, onUpdate }) => {
diff --git a/src/components/signup/modal/PhoneVerification.tsx b/src/components/signup/modal/PhoneVerification.tsx
index 1a1bb5d..a112512 100644
--- a/src/components/signup/modal/PhoneVerification.tsx
+++ b/src/components/signup/modal/PhoneVerification.tsx
@@ -35,7 +35,8 @@ const PhoneVerification: React.FC
= ({ onNext, onPhoneNu
const handleRequest = async () => {
try {
- const data = await sendVerificationCode(phoneNumber);
+ const plainPhoneNumber = phoneNumber.replace(/-/g, '');
+ const data = await sendVerificationCode(plainPhoneNumber);
console.log('인증 요청 성공:', data);
setIsRequest(true); // 요청 상태 true
setValidTime(300); // 인증 요청 시 타이머 초기화
@@ -48,7 +49,8 @@ const PhoneVerification: React.FC = ({ onNext, onPhoneNu
const handleResending = async () => {
if (isComplete) return;
try {
- const data = await sendVerificationCode(phoneNumber);
+ const plainPhoneNumber = phoneNumber.replace(/-/g, '');
+ const data = await sendVerificationCode(plainPhoneNumber);
console.log('인증 재요청 성공:', data);
setValidNumber('');
inputRef.current?.focus();
@@ -62,7 +64,8 @@ const PhoneVerification: React.FC = ({ onNext, onPhoneNu
const handleCertify = async () => {
if (isComplete) return; // 이미 인증 완료된 상태면 return
try {
- const data = await verifyCode(phoneNumber, validNumber);
+ const plainPhoneNumber = phoneNumber.replace(/-/g, '');
+ const data = await verifyCode(plainPhoneNumber, validNumber);
console.log('인증 완료:', data);
setIsComplete(true); // 인증 검사 통과
setIsError(false);
@@ -243,12 +246,12 @@ const PhoneVerification: React.FC = ({ onNext, onPhoneNu
{isComplete ? (
다음으로
) : (
-
+
다음으로
)}
diff --git a/src/service/auth.ts b/src/service/auth.ts
index fdf85e8..bfe293c 100644
--- a/src/service/auth.ts
+++ b/src/service/auth.ts
@@ -15,8 +15,7 @@ export const verifyCode = async (phone: string, code: string): Promise