Skip to content

Commit

Permalink
Remove disableElevation from buttons in multiple pages for consistent…
Browse files Browse the repository at this point in the history
… styling
  • Loading branch information
aelassas committed Jan 24, 2025
1 parent a1e11f4 commit dd07797
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/Activate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ const Activate = () => {
</FormHelperText>
</FormControl>
<div className="buttons">
<Button type="submit" className="btn-primary btn-margin btn-margin-bottom" variant="contained" disableElevation>
<Button type="submit" className="btn-primary btn-margin btn-margin-bottom" variant="contained">
{reset ? commonStrings.UPDATE : strings.ACTIVATE}
</Button>
<Button variant="outlined" color="primary" className="btn-margin-bottom" onClick={() => navigate('/')}>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/ForgotPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const ForgotPassword = () => {
<SocialLogin redirectToHomepage />

<div className="buttons">
<Button type="submit" className="btn-primary btn-margin btn-margin-bottom" variant="contained" disableElevation>
<Button type="submit" className="btn-primary btn-margin btn-margin-bottom" variant="contained">
{strings.RESET}
</Button>
<Button variant="outlined" color="primary" className="btn-margin-bottom" onClick={() => navigate('/')}>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/ResetPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const ResetPassword = () => {
</FormHelperText>
</FormControl>
<div className="buttons">
<Button type="submit" className="btn-primary btn-margin btn-margin-bottom" variant="contained" disableElevation>
<Button type="submit" className="btn-primary btn-margin btn-margin-bottom" variant="contained">
{commonStrings.SAVE}
</Button>
<Button variant="outlined" color="primary" className="btn-margin-bottom" onClick={() => navigate('/')}>
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/pages/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,14 @@ const Settings = () => {
<Button
variant="contained"
className="btn-primary btn-margin btn-margin-bottom"
disableElevation
onClick={(e) => {
e.preventDefault()
navigate('/change-password')
}}
>
{commonStrings.RESET_PASSWORD}
</Button>
<Button type="submit" variant="contained" className="btn-primary btn-margin-bottom" disableElevation>
<Button type="submit" variant="contained" className="btn-primary btn-margin-bottom">
{commonStrings.SAVE}
</Button>
<Button
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/SignIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const SignIn = () => {
<Button variant="outlined" color="primary" onClick={() => navigate('/sign-up')} className="btn-margin btn-margin-bottom">
{suStrings.SIGN_UP}
</Button>
<Button type="submit" variant="contained" className="btn-primary btn-margin btn-margin-bottom" disableElevation>
<Button type="submit" variant="contained" className="btn-primary btn-margin btn-margin-bottom">
{strings.SIGN_IN}
</Button>
</div>
Expand Down

0 comments on commit dd07797

Please sign in to comment.