Skip to content

Commit

Permalink
Fix Settings.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Aug 16, 2024
1 parent 3ff1249 commit ebb8771
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
13 changes: 6 additions & 7 deletions backend/src/pages/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ const Settings = () => {

return _phoneValid
}
setPhoneValid(true)
setPhoneValid(true)

return true
return true
}

const handlePhoneChange = (e: React.ChangeEvent<HTMLInputElement>) => {
Expand Down Expand Up @@ -163,8 +163,7 @@ const Settings = () => {
mode="update"
record={user}
size="large"
// readonly={false}
readonly
readonly={false}
onBeforeUpload={onBeforeUpload}
onChange={onAvatarChange}
hideDelete={!admin}
Expand Down Expand Up @@ -193,7 +192,7 @@ const Settings = () => {
<Input id="bio" type="text" onChange={handleBioChange} autoComplete="off" value={bio} />
</FormControl>
<div className="buttons">
<Button type="submit" variant="contained" className="btn-primary btn-margin btn-margin-bottom" size="small" href="/change-password">
<Button variant="contained" className="btn-primary btn-margin btn-margin-bottom" size="small" href="/change-password">
{commonStrings.RESET_PASSWORD}
</Button>
<Button type="submit" variant="contained" className="btn-primary btn-margin-bottom" size="small">
Expand All @@ -205,7 +204,7 @@ const Settings = () => {
</div>
</form>
</Paper>
{/* <Paper className="settings-net settings-net-wrapper" elevation={10}>
<Paper className="settings-net settings-net-wrapper" elevation={10}>
<h1 className="settings-form-title">
{' '}
{strings.NETWORK_SETTINGS}
Expand All @@ -214,7 +213,7 @@ const Settings = () => {
<FormControl component="fieldset">
<FormControlLabel control={<Switch checked={enableEmailNotifications} onChange={handleEmailNotificationsChange} />} label={strings.SETTINGS_EMAIL_NOTIFICATIONS} />
</FormControl>
</Paper> */}
</Paper>
</div>
)}
{loading && <Backdrop text={commonStrings.PLEASE_WAIT} />}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/pages/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ const Settings = () => {
</FormControl>
<div className="buttons">
<Button
type="submit"
variant="contained"
className="btn-primary btn-margin btn-margin-bottom"
size="small"
Expand Down

0 comments on commit ebb8771

Please sign in to comment.