diff --git a/src/pages/profile.tsx b/src/pages/profile.tsx index 25b600b4..abf372c6 100644 --- a/src/pages/profile.tsx +++ b/src/pages/profile.tsx @@ -17,6 +17,7 @@ import {EmploymentStatus, EMPLOYMENT_STATUS, Gender, User} from "@/interfaces/us import CountrySelect from "@/components/Low/CountrySelect"; import {shouldRedirectHome} from "@/utils/navigation.disabled"; import moment from "moment"; +import {BsCamera, BsCameraFill} from "react-icons/bs"; export const getServerSideProps = withIronSessionSsr(({req, res}) => { const user = req.session.user; @@ -162,12 +163,13 @@ export default function Home() { {user && ( -
-
-
-

Edit Profile

+
+

Edit Profile

+
+
+

Edit Profile

-
+
-
+
-
+
@@ -220,7 +222,7 @@ export default function Home() { required />
-
+
( @@ -313,12 +315,19 @@ export default function Home() {
-
- {user.name} +
(profilePictureInput.current as any)?.click()}> +
+
+ +
+ {user.name} +
(profilePictureInput.current as any)?.click()} diff --git a/src/pages/record.tsx b/src/pages/record.tsx index 8a06349c..43cf5c7c 100644 --- a/src/pages/record.tsx +++ b/src/pages/record.tsx @@ -174,17 +174,8 @@ export default function History({user}: {user: User}) { }); }; - return ( -
= 0.7 && "hover:border-mti-purple", - correct / total >= 0.3 && correct / total < 0.7 && "hover:border-mti-red", - correct / total < 0.3 && "hover:border-mti-rose", - )} - onClick={selectExam} - role="button"> + const content = ( + <>
{formatTimestamp(timestamp)} @@ -223,7 +214,36 @@ export default function History({user}: {user: User}) {
))}
-
+ + ); + + return ( + <> +
= 0.7 && "hover:border-mti-purple", + correct / total >= 0.3 && correct / total < 0.7 && "hover:border-mti-red", + correct / total < 0.3 && "hover:border-mti-rose", + )} + onClick={selectExam} + role="button"> + {content} +
+
= 0.7 && "hover:border-mti-purple", + correct / total >= 0.3 && correct / total < 0.7 && "hover:border-mti-red", + correct / total < 0.3 && "hover:border-mti-rose", + )} + data-tip="Your screen size is too small to view previous exams." + role="button"> + {content} +
+ ); };