Skip to content

Commit

Permalink
type :: login page type apply
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed May 8, 2024
1 parent abf3d3a commit e7a4c6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import { useState } from 'react';
import { login, signup } from '@/utils/apis/auth';
import { Cookie } from '@/utils/cookie';
import { useNavigate } from 'react-router-dom';
import { SignInType } from '@/utils/types/authType';

export const Login = () => {
const link = useNavigate();
const [data, setData] = useState<{ account_id: string; password: string }>({ account_id: '', password: '' });
const [data, setData] = useState<SignInType>({ account_id: '', password: '' });

const { account_id, password } = data;

Expand Down

0 comments on commit e7a4c6e

Please sign in to comment.