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

🔀 auth 페이지 간단 사항 변경 #20

Merged
merged 2 commits into from
Nov 10, 2024
Merged
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
2 changes: 1 addition & 1 deletion src/entities/signIn/ui/SignInForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { useRouter } from 'next/navigation';
import { useForm } from 'react-hook-form';
import Button from '@/shared/ui/Button';
import Input from '@/shared/ui/Input';
import { signIn } from '../../api/signin';
import { showError } from '../../model/showError';
import { signIn } from '../../model/signin';

type FormData = {
nickname: string;
Expand Down
2 changes: 1 addition & 1 deletion src/entities/signIn/ui/SignupPrompt/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const SignupPrompt = () => {
<p className="text-caption2 text-gray-300">
아직 관리자 로그인을 안 하셨나요?
</p>
<Link href="/signUp" className="text-caption2 text-gray-500">
<Link href="/signup" className="text-caption2 text-gray-500">
회원가입
</Link>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// src/utils/checkSmsCode.ts
import axios from 'axios';
import { toast } from 'react-toastify';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// src/utils/sendSms.ts
import axios from 'axios';
import { toast } from 'react-toastify';

Expand Down
1 change: 0 additions & 1 deletion src/entities/signUp/model/useTimer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// src/utils/useTimer.ts
import { useEffect } from 'react';

export const useTimer = (
Expand Down
6 changes: 3 additions & 3 deletions src/entities/signUp/ui/SignUpForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { useRouter } from 'next/navigation';
import { useState } from 'react';
import { useForm } from 'react-hook-form';
import { Button, Input } from '@/shared/ui';
import { checkSmsCode } from '../../model/checkSmsCode';
import { sendSms } from '../../model/sendSms';
import { checkSmsCode } from '../../api/checkSmsCode';
import { sendSms } from '../../api/sendSms';
import { signUp } from '../../api/signup';
import { showError } from '../../model/showError';
import { signUp } from '../../model/signup';
import { useTimer } from '../../model/useTimer';

type FormData = {
Expand Down
2 changes: 1 addition & 1 deletion src/views/signIn/ui/signIn/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const SignIn = () => {
<div className="flex min-h-screen flex-col">
<Header />
<div className="flex flex-grow items-center justify-center">
<div className="mt-8 w-full max-w-[792px] px-5">
<div className="w-full max-w-[792px] px-5 py-8">
<SignInContainer />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/views/signUp/ui/signUp/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const SignUp = () => {
<div className="flex min-h-screen flex-col">
<Header />
<div className="flex flex-grow items-center justify-center">
<div className="mt-8 w-full max-w-[792px] px-5">
<div className="w-full max-w-[792px] px-5 py-8">
<SignUpContainer />
</div>
</div>
Expand Down
Loading