Skip to content

Commit 6b7efc4

Browse files
author
jyn
committed
Merge branch 'dev' of https://github.com/codeit-team6/nomadia into dev
2 parents 2a8d8e5 + d3acae2 commit 6b7efc4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/features/auth/signup/components/SignupForm.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { toast } from 'sonner';
88

99
import { FormInput } from '@/shared/components/form-input/form-input';
1010

11+
import { signup } from '../../api/auth.api';
1112
import { SignupFormType, signupSchema } from '../../validators/auth.schema';
1213

1314
export const SignupForm = () => {
@@ -23,8 +24,9 @@ export const SignupForm = () => {
2324

2425
const router = useRouter();
2526

26-
const onSubmit: SubmitHandler<SignupFormType> = async () => {
27+
const onSubmit: SubmitHandler<SignupFormType> = async (data) => {
2728
try {
29+
await signup(data);
2830
toast.success('회원가입 성공');
2931
router.push('./login');
3032
} catch (error) {

0 commit comments

Comments
 (0)