Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "feat: 회원가입 로직 개발 및 Button 컴포넌트를 수정합니다." #137

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions app/api/google/oauth/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ export async function POST(request: NextRequest): Promise<NextResponse> {
},
);

console.log(code);
console.log(res);

if (!res.ok) {
console.error('Error fetching data:', error);
return NextResponse.json(
Expand Down
19 changes: 0 additions & 19 deletions app/api/join/gender/route.ts

This file was deleted.

23 changes: 0 additions & 23 deletions app/api/join/nickname/route.ts

This file was deleted.

6 changes: 1 addition & 5 deletions app/google/oauth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const Page = () => {

useEffect(() => {
const GOOGLE_CODE = searchParams.get('code');
console.log('추출한 코드:', GOOGLE_CODE);

const postCode = async () => {
if (!GOOGLE_CODE) {
Expand All @@ -32,9 +31,6 @@ const Page = () => {
body: JSON.stringify({ code: GOOGLE_CODE }),
});

console.log('전달한 코드:', JSON.stringify({ code: GOOGLE_CODE }));
console.log('응답:', response);

if (response.status === 200) {
const data = (await response.json()) as AuthResponse;

Expand All @@ -43,7 +39,7 @@ const Page = () => {
nickname: data.data.data.nickname,
userId: data.data.data.userId,
});
router.push('/join/nickname');
router.push('/');
}
} catch (error) {
console.error('Error:', error);
Expand Down
155 changes: 0 additions & 155 deletions app/join/gender/page.tsx

This file was deleted.

119 changes: 0 additions & 119 deletions app/join/nickname/page.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion app/kakao/oauth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Page = () => {
nickname: data.data.data.nickname,
userId: data.data.data.userId,
});
router.push('/join/nickname');
router.push('/');
}
} catch (error) {
console.error('Error:', error);
Expand Down
5 changes: 2 additions & 3 deletions components/atoms/button/button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ const meta: Meta<typeof Button> = {
rightIconSrc: {
control: 'text',
},
className: {
control: 'text',
},
},
};

Expand All @@ -60,6 +57,8 @@ export const Default: Story = {
args: {
label: 'Label',
size: 'large',
variant: 'solid',
buttonType: 'primary',
interaction: 'normal',
},
};
Expand Down
Loading
Loading