-
@@ -278,17 +249,9 @@ const LoginPage = () => {
-
@@ -346,7 +309,11 @@ const LoginPage = () => {
(e.currentTarget.style.color = colors.text.tertiary)
}
>
- {showPassword ?
:
}
+ {showPassword ? (
+
+ ) : (
+
+ )}
@@ -381,7 +348,7 @@ const LoginPage = () => {
backgroundColor: loading
? colors.interactive.disabled
: colors.brand.primary,
- color: colors.text.inverted,
+ color: colors.text.inverse,
}}
onMouseOver={(e) =>
!loading &&
diff --git a/app/frontend/src/pages/ProfilePage.jsx b/app/frontend/src/pages/ProfilePage.jsx
index 510c4725..7c913bf4 100644
--- a/app/frontend/src/pages/ProfilePage.jsx
+++ b/app/frontend/src/pages/ProfilePage.jsx
@@ -502,7 +502,7 @@ const ProfilePage = () => {
sx={{
mt: 2,
backgroundColor: colors.brand.primary,
- color: colors.text.inverted,
+ color: colors.text.inverse,
"&:hover": {
backgroundColor: colors.brand.secondary,
},
@@ -647,7 +647,7 @@ const ProfilePage = () => {
onClick={() => setRatingCategoriesOpen(true)}
sx={{
backgroundColor: colors.brand.primary,
- color: colors.text.inverted,
+ color: colors.text.inverse,
"& .MuiChip-label": { px: 2 },
cursor: "pointer",
"&:hover": {
@@ -729,7 +729,7 @@ const ProfilePage = () => {
ml: 4,
"& .MuiBadge-badge": {
backgroundColor: colors.brand.primary,
- color: colors.text.inverted,
+ color: colors.text.inverse,
},
}}
aria-label={`Earned badges: ${earnedBadges.length}`}
@@ -920,7 +920,7 @@ const ProfilePage = () => {
px: 3,
py: 1,
backgroundColor: colors.brand.primary,
- color: colors.text.inverted,
+ color: colors.text.inverse,
"&:hover": {
backgroundColor: colors.brand.secondary,
},
@@ -951,7 +951,7 @@ const ProfilePage = () => {
px: 3,
py: 1,
backgroundColor: colors.brand.primary,
- color: colors.text.inverted,
+ color: colors.text.inverse,
"&:hover": {
backgroundColor: colors.brand.secondary,
},
@@ -1011,7 +1011,7 @@ const ProfilePage = () => {
size="small"
sx={{
backgroundColor: colors.brand.primary,
- color: colors.text.inverted,
+ color: colors.text.inverse,
"& .MuiChip-label": { px: 1 },
}}
/>
@@ -1043,7 +1043,7 @@ const ProfilePage = () => {
},
"& .Mui-selected": {
backgroundColor: `${colors.brand.primary} !important`,
- color: `${colors.text.inverted} !important`,
+ color: `${colors.text.inverse} !important`,
"&:hover": {
backgroundColor: `${colors.brand.secondary} !important`,
},
diff --git a/app/frontend/src/pages/RegisterPage.jsx b/app/frontend/src/pages/RegisterPage.jsx
index 1c9d5769..fa0f31b2 100644
--- a/app/frontend/src/pages/RegisterPage.jsx
+++ b/app/frontend/src/pages/RegisterPage.jsx
@@ -1,36 +1,14 @@
import { useState } from "react";
import { Link as RouterLink, useNavigate } from "react-router-dom";
-
-// Eye icons for password visibility
-const EyeIcon = () => (
-
-);
-
-const EyeOffIcon = () => (
-
-);
import useAuth from "../features/authentication/hooks/useAuth";
import { useTheme } from "../hooks/useTheme";
-
import logoImage from "../assets/logo.png";
-import userIcon from "../assets/user.svg";
-import keyIcon from "../assets/key_for_register.svg";
-import phoneIcon from "../assets/phone.svg";
-import mailIcon from "../assets/mail.svg";
+import PersonIcon from "@mui/icons-material/Person";
+import EmailIcon from "@mui/icons-material/Email";
+import LockIcon from "@mui/icons-material/Lock";
+import PhoneIcon from "@mui/icons-material/Phone";
+import VisibilityIcon from "@mui/icons-material/Visibility";
+import VisibilityOffIcon from "@mui/icons-material/VisibilityOff";
const RegisterPage = () => {
const { colors, theme, setTheme } = useTheme();
@@ -223,7 +201,7 @@ const RegisterPage = () => {
className="px-8 py-2 no-underline transition-colors"
style={{
backgroundColor: colors.brand.primary,
- color: colors.text.inverted,
+ color: colors.text.inverse,
}}
onMouseOver={(e) =>
(e.currentTarget.style.backgroundColor =
@@ -270,17 +248,9 @@ const RegisterPage = () => {
-
@@ -328,17 +298,9 @@ const RegisterPage = () => {
-
@@ -388,17 +350,9 @@ const RegisterPage = () => {
-
@@ -445,17 +399,9 @@ const RegisterPage = () => {
-
@@ -502,17 +448,9 @@ const RegisterPage = () => {
-
@@ -560,17 +498,9 @@ const RegisterPage = () => {
-
@@ -627,7 +557,11 @@ const RegisterPage = () => {
(e.currentTarget.style.color = colors.text.tertiary)
}
>
- {showPassword ?
:
}
+ {showPassword ? (
+
+ ) : (
+
+ )}
@@ -637,17 +571,9 @@ const RegisterPage = () => {
-
@@ -708,7 +634,11 @@ const RegisterPage = () => {
(e.currentTarget.style.color = colors.text.tertiary)
}
>
- {showConfirmPassword ?
:
}
+ {showConfirmPassword ? (
+
+ ) : (
+
+ )}
@@ -759,7 +689,7 @@ const RegisterPage = () => {
backgroundColor: loading
? colors.interactive.disabled
: colors.brand.primary,
- color: colors.text.inverted,
+ color: colors.text.inverse,
}}
onMouseOver={(e) =>
!loading &&
diff --git a/app/frontend/src/pages/ResetPassword.jsx b/app/frontend/src/pages/ResetPassword.jsx
index 0e4b7b14..f3d34663 100644
--- a/app/frontend/src/pages/ResetPassword.jsx
+++ b/app/frontend/src/pages/ResetPassword.jsx
@@ -354,7 +354,7 @@ const ResetPassword = () => {
backgroundColor: loading
? colors.interactive.disabled
: colors.brand.primary,
- color: colors.text.inverted,
+ color: colors.text.inverse,
}}
onMouseOver={(e) =>
!loading &&