Skip to content

Commit

Permalink
refactor:#5 절대경로로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dalzzy committed Jan 5, 2025
1 parent 527f729 commit 227982e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/SignUp/MbtiStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import SignUpInput from './SignupInput';
import { useRecoilState } from 'recoil';
import { signupAtom } from '@/recoil/atoms/userAtom';
import { useState, useEffect } from 'react';
import InputErrorMessage from '../common/Error/InputErrorMessage';
import InputErrorMessage from '@/components/common/Error/InputErrorMessage';
import {
isAllMbtiInputsValid,
validateMbtiInput,
Expand Down
2 changes: 1 addition & 1 deletion src/components/SignUp/NicknameStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import SignUpInput from './SignupInput';
import { useRecoilState } from 'recoil';
import { signupAtom } from '@/recoil/atoms/userAtom';
import { useState } from 'react';
import InputErrorMessage from '../common/Error/InputErrorMessage';
import InputErrorMessage from '@/components/common/Error/InputErrorMessage';
import { isNicknameValid, validateNickname } from '@/utils/validate-input';
import { useNavigate } from 'react-router-dom';

Expand Down
4 changes: 2 additions & 2 deletions src/components/SignUp/PhoneNumStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import SignUpInput from './SignupInput';
import { useRecoilState } from 'recoil';
import { signupAtom } from '@/recoil/atoms/userAtom';
import { useState, useEffect } from 'react';
import InputErrorMessage from '../common/Error/InputErrorMessage';
import InputErrorMessage from '@/components/common/Error/InputErrorMessage';
import { formatPhoneNumber, validatePhoneNumber } from '@/utils/validate-input';
import { useNavigate } from 'react-router-dom';

Expand All @@ -34,7 +34,7 @@ const PhoneNumStep: React.FC = () => {

const handleNext = () => {
if (isFormValid()) {
nav('/signup/mbti'); // 다음 단계로 이동
nav('/signup/mbti');
}
};

Expand Down
4 changes: 2 additions & 2 deletions src/components/SignUp/ProfileImgStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
ProfileImage,
HiddenFileInput,
} from '@/styles/SignUp/SignUp.styled';
import ActionModal from '../common/Modal/ActionModal';
import Button from '../common/Button/Button';
import ActionModal from '@/components/common/Modal/ActionModal';
import Button from '@/components/common/Button/Button';
import { useRecoilState } from 'recoil';
import { signupAtom } from '@/recoil/atoms/userAtom';
import { useNavigate } from 'react-router-dom';
Expand Down
4 changes: 2 additions & 2 deletions src/components/SignUp/StudentIdStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import SignUpInput from './SignupInput';
import { useRecoilState } from 'recoil';
import { useState } from 'react';
import { signupAtom } from '@/recoil/atoms/userAtom';
import InputErrorMessage from '../common/Error/InputErrorMessage';
import InputErrorMessage from '@/components/common/Error/InputErrorMessage';
import { isStudentIdValid, validateStudentId } from '@/utils/validate-input';
import { useNavigate } from 'react-router-dom';

Expand All @@ -28,7 +28,7 @@ const StudentIdStep: React.FC = () => {

const handleNext = () => {
if (isFormValid) {
nav('/signup/profile-img'); // 다음 단계로 이동
nav('/signup/profile-img');
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/common/Modal/ActionModal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useRef } from 'react';
import * as S from '../Modal/styles';
import * as S from '@/components/common/Modal/styles';

interface ActionModalProps {
isOpen: boolean;
Expand Down

0 comments on commit 227982e

Please sign in to comment.