Modified | Change Account Settings
This commit is contained in:
parent
7c77e43be8
commit
d12c850df0
2 changed files with 9 additions and 10 deletions
|
@ -580,26 +580,23 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
|||
<TextSettings
|
||||
label="New Name"
|
||||
value={newName}
|
||||
type='text'
|
||||
setValue={setNewName}
|
||||
type="text"
|
||||
placeholder={localStorage.getItem("accountName") || "Current Name"} // Show current name or a default
|
||||
/>
|
||||
<TextSettings
|
||||
label="New Email"
|
||||
value={newEmail}
|
||||
setValue={setNewEmail}
|
||||
type="email" // Input type is email
|
||||
type="email"
|
||||
placeholder={localStorage.getItem("accountEmail") || "Current Email"} // Show current email or a default
|
||||
/>
|
||||
<TextSettings
|
||||
label="New Password"
|
||||
value={newPassword}
|
||||
setValue={setNewPassword}
|
||||
type="password" // Input type is password
|
||||
/>
|
||||
<TextSettings
|
||||
label="Current Password"
|
||||
value={currentPassword}
|
||||
setValue={setCurrentPassword}
|
||||
type="password" // Input type is password
|
||||
type="password"
|
||||
placeholder={newPassword ? "********" : "Enter new Password"} // Show asterisks or a default
|
||||
/>
|
||||
<ButtonSetting
|
||||
label="Log Out" // Button label
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue