Skip to content

Commit

Permalink
Revert "Feature/sign2"
Browse files Browse the repository at this point in the history
  • Loading branch information
eun-hak authored May 12, 2024
1 parent c3c9683 commit 85d3cd8
Show file tree
Hide file tree
Showing 53 changed files with 111 additions and 3,857 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NEXT_PUBLIC_BASE_URL=
1,686 changes: 58 additions & 1,628 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,13 @@
},
"dependencies": {
"axios": "^1.6.8",
"framer-motion": "^11.1.9",
"next": "14.2.3",
"react": "^18",
"react-cookie": "^7.1.4",
"react-dom": "^18",
"react-hook-form": "^7.51.4",
"react-icons": "^5.2.1",
"react-markdown": "^9.0.1",
"react-query": "^3.39.3",
"react-toastify": "^10.0.5",
"remark-gfm": "^4.0.0"
"react-toastify": "^10.0.5"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.13",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
Expand Down
3 changes: 0 additions & 3 deletions public/CheckIcon.svg

This file was deleted.

5 changes: 0 additions & 5 deletions public/CheckSubIcon.svg

This file was deleted.

3 changes: 0 additions & 3 deletions public/CheckedIcon.svg

This file was deleted.

3 changes: 0 additions & 3 deletions public/DropDown.svg

This file was deleted.

19 changes: 0 additions & 19 deletions public/ExclamationMark.svg

This file was deleted.

3 changes: 0 additions & 3 deletions public/RightArrowIcon.svg

This file was deleted.

Binary file removed public/logo.png
Binary file not shown.
Binary file removed public/sign/positionCircle.png
Binary file not shown.
Binary file removed public/sign/positionClose.png
Binary file not shown.
Binary file removed public/sign/positionColorCircle.png
Binary file not shown.
Binary file removed public/sign/termsDetail.png
Binary file not shown.
Binary file removed public/sign/termsNotCheck.png
Binary file not shown.
Binary file removed public/termsCheck.png
Binary file not shown.
14 changes: 6 additions & 8 deletions src/api/auth/auth.post.api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// import { ICommon } from '../types/common';
import { basicResponse } from '@/models/response';
import { postRequest } from '../request';
import {
ISignIn,
Expand All @@ -11,7 +10,6 @@ import {
IPhoneAuth
} from '../types/auth';


/* 회원가입 */

export const signup = async ({
Expand Down Expand Up @@ -51,22 +49,22 @@ export const signin = async ({ memberEmail, memberPassword }: ISignIn) => {
/* 이메일 인증 요청 */

export const emailauthrequest = async ({ emailAddress }: IEmail) => {
const response = await postRequest<null, IEmail>(`auth/email`, {
const response = await postRequest<null, IEmail>('auth/email', {
emailAddress
});

return response as basicResponse | null;
return response;
};

/* 이메일 코드 검증 */

export const emailauthverify = async ({ emailAddress, code }: IEmailAuth) => {
const response = await postRequest<null, IEmailAuth>(`auth/email/verify`, {
const response = await postRequest<null, IEmailAuth>('auth/email/verify', {
emailAddress,
code
});

return response as basicResponse | null;
return response;
};

/* 휴대전화 번호 인증 요청*/
Expand All @@ -76,7 +74,7 @@ export const phoneauthrequest = async ({ phoneNumber }: IPhoneNumber) => {
phoneNumber
});

return response as basicResponse | null;
return response;
};

/* 휴대전화 번호 코드 검증*/
Expand All @@ -87,7 +85,7 @@ export const phoneauthverify = async ({ phoneNumber, code }: IPhoneAuth) => {
code
});

return response as basicResponse | null;
return response;
};

/* 로그아웃*/
Expand Down
5 changes: 0 additions & 5 deletions src/api/types/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ export interface IEmailAuth extends IEmail {
code: number;
}

export interface IEmailAuth2 {
emailAddress: string;
code: number;
}

export interface ITokenRefresh {
// 아직 타입 안들어옴
}
Expand Down
39 changes: 0 additions & 39 deletions src/components/findpassword/ChangePasswordDone.tsx

This file was deleted.

Loading

0 comments on commit 85d3cd8

Please sign in to comment.