Skip to content

Commit fe8c440

Browse files
committed
Add link to forgot password in login page
1 parent 1b11523 commit fe8c440

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

frontend/src/presentation/components/LoginForm/LoginForm.module.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
gap: 4vh;
1111
align-items: center;
1212
padding: 10vh;
13-
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
13+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
1414
border-radius: 8px;
1515
background: #fff;
16-
font-family: 'Roboto', sans-serif;
16+
font-family: "Roboto", sans-serif;
1717
height: 100%;
1818
width: 100%;
1919
}
@@ -62,3 +62,7 @@
6262
.button:hover {
6363
background-color: #555;
6464
}
65+
66+
.forgotPasswordLink {
67+
margin-right: auto;
68+
}

frontend/src/presentation/components/LoginForm/LoginForm.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useEffect, useState } from "react";
22
import styles from "./LoginForm.module.css";
3-
import { useLocation, useNavigate } from "react-router-dom";
3+
import { Link, useLocation, useNavigate } from "react-router-dom";
44
import { handleError } from "presentation/utils/errorHandler";
55
import { useAuth } from "domain/context/AuthContext";
66

@@ -52,6 +52,9 @@ export const LoginForm: React.FC = () => {
5252
<button type="submit" className={styles.button}>
5353
Sign In
5454
</button>
55+
<Link to="/forgot-password" className={styles.forgotPasswordLink}>
56+
Forgot password?
57+
</Link>
5558
</form>
5659
</div>
5760
);

frontend/src/presentation/pages/layout/Layout.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@
4747
font-size: 24px;
4848
margin-left: 8px;
4949
cursor: pointer;
50-
}
50+
}

0 commit comments

Comments
 (0)