Skip to content

Commit 4eaa63f

Browse files
committed
fix(frontend): remove Email label
- Replace "Email" with "Login Id" for consistency with SignUp.tsx
1 parent ae4775a commit 4eaa63f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

frontend/src/pages/SignIn.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { authenticate, getUserByLogin } from "../utils/api";
1010
import SignUp from './SignUp';
1111

1212
const SignIn = () => {
13-
const [email, setEmail] = useState<string>('');
13+
const [loginId, setLoginId] = useState<string>('');
1414
const [password, setPassword] = useState<string>('');
1515
const navigate = useNavigate();
1616
const [isSnackBarOpen, setIsSnackBarOpen] = React.useState(false);
@@ -22,11 +22,11 @@ const SignIn = () => {
2222
setLoading(true)
2323
e.preventDefault();
2424
try {
25-
const authRes = await authenticate(email, password);
25+
const authRes = await authenticate(loginId, password);
2626
if (authRes.status === 200) {
2727
localStorage.setItem("authenticated", "true");
2828
sessionStorage.setItem("authenticated", "true")
29-
const userRes = await getUserByLogin(email);
29+
const userRes = await getUserByLogin(loginId);
3030
if (userRes.status === 200) {
3131
const user = userRes.data;
3232
userStore.user = user;
@@ -70,14 +70,14 @@ const SignIn = () => {
7070
src={avatar} alt="avatar"/>
7171
<Input
7272
type="userid"
73-
name="email"
74-
label="Email"
73+
name="loginId"
74+
label="Login Id"
7575
required
7676
variant="primary"
7777
size="md"
7878
autoComplete="username"
79-
value={email}
80-
onChange={e => setEmail(e.target.value)}
79+
value={loginId}
80+
onChange={e => setLoginId(e.target.value)}
8181
/>
8282
<Input
8383
type="password"

0 commit comments

Comments
 (0)