From 15902da87cfdbc180e63c943493c810d57100cdf Mon Sep 17 00:00:00 2001
From: tigattack <10629864+tigattack@users.noreply.github.com>
Date: Wed, 24 Sep 2025 22:54:28 +0100
Subject: [PATCH] fix(frontend): use `useId()` for input IDs
---
frontend/src/pages/Login.jsx | 30 ++++++++++--------
frontend/src/pages/Profile.jsx | 41 ++++++++++++++++---------
frontend/src/pages/RepositoryDetail.jsx | 5 +--
frontend/src/pages/Settings.jsx | 22 ++++++++-----
4 files changed, 61 insertions(+), 37 deletions(-)
diff --git a/frontend/src/pages/Login.jsx b/frontend/src/pages/Login.jsx
index c81f6b9..6d0ea65 100644
--- a/frontend/src/pages/Login.jsx
+++ b/frontend/src/pages/Login.jsx
@@ -14,6 +14,12 @@ import { useAuth } from "../contexts/AuthContext";
import { authAPI } from "../utils/api";
const Login = () => {
+ const usernameId = useId();
+ const firstNameId = useId();
+ const lastNameId = useId();
+ const emailId = useId();
+ const passwordId = useId();
+ const tokenId = useId();
const [isSignupMode, setIsSignupMode] = useState(false);
const [formData, setFormData] = useState({
username: "",
@@ -212,14 +218,14 @@ const Login = () => {
{
{
{
+ const usernameId = useId();
+ const emailId = useId();
+ const firstNameId = useId();
+ const lastNameId = useId();
+ const currentPasswordId = useId();
+ const newPasswordId = useId();
+ const confirmPasswordId = useId();
const { user, updateProfile, changePassword } = useAuth();
const { theme, toggleTheme, isDark } = useTheme();
const [activeTab, setActiveTab] = useState("profile");
@@ -250,7 +257,7 @@ const Profile = () => {