diff --git a/frontend/src/apis/apis.ts b/frontend/src/apis/apis.ts
index df5c794..ae89470 100644
--- a/frontend/src/apis/apis.ts
+++ b/frontend/src/apis/apis.ts
@@ -28,6 +28,5 @@ export async function register(email: string, username: string, password: string
if (!v.ok) {
throw data
}
- return data as tokenData
-
+ return
}
\ No newline at end of file
diff --git a/frontend/src/components/Loading.tsx b/frontend/src/components/Loading.tsx
new file mode 100644
index 0000000..95637f2
--- /dev/null
+++ b/frontend/src/components/Loading.tsx
@@ -0,0 +1,15 @@
+import Backdrop from "@mui/material/Backdrop";
+import CircularProgress from "@mui/material/CircularProgress";
+
+export default function Loading() {
+ return (
+ <>
+ theme.zIndex.drawer + 1 }}
+ open={true}
+ >
+
+
+ >
+ )
+}
diff --git a/frontend/src/views/Login.tsx b/frontend/src/views/Login.tsx
index 097b400..aaf5e85 100644
--- a/frontend/src/views/Login.tsx
+++ b/frontend/src/views/Login.tsx
@@ -11,49 +11,35 @@ import Typography from '@mui/material/Typography';
import Container from '@mui/material/Container';
import Snackbar from '@mui/material/Snackbar';
import Alert from '@mui/material/Alert';
-import Backdrop from '@mui/material/Backdrop';
-import CircularProgress from '@mui/material/CircularProgress';
import { useSetAtom } from 'jotai';
import { token, username } from '@/store/store'
import { login } from '@/apis/apis'
-import { checkEmail } from '@/utils/email'
import { Link as RouterLink } from "react-router-dom";
-
-function Loading() {
- return (
- <>
- theme.zIndex.drawer + 1 }}
- open={true}
- >
-
-
- >
- )
-}
+import Loading from '@/components/Loading'
+import CheckInput, { refType } from '@/components/CheckInput'
export default function SignIn() {
- const [emailErr, setEmailErr] = useState("");
const [err, setErr] = useState("");
const [loading, setLoading] = useState(false);
const setToken = useSetAtom(token)
const setUsername = useSetAtom(username)
+ const checkList = React.useRef