Skip to content
Snippets Groups Projects
Commit 953247ca authored by Minseo Lee's avatar Minseo Lee
Browse files

fix: change `fetchData` using `conncetor`

parent 04945a00
No related branches found
No related tags found
No related merge requests found
import React, { useState } from "react";
import { useNavigate } from "react-router-dom";
import APP_ROUTE from "../../_app/config/route";
import S from './SignupPage.module.css';
......@@ -10,11 +8,6 @@ import S from './SignupPage.module.css';
import type Connector from "../../common/instances/Connector";
interface passString {
origin : string
again : string
}
interface Props {
connector: Connector;
}
......@@ -90,7 +83,7 @@ const SignupPage: React.FC<Props> = ({ connector }) => {
){
try {
void(async () => {
await fetchData('/user/register', FETCH_METHOD.POST, accountData);
await connector.post('/user/register', accountData);
navigate(APP_ROUTE.LOGIN);
})();
} catch (e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment