Skip to content

Commit

Permalink
feat(overlay): change from cancel to close (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhigarg-bmw authored Nov 27, 2023
1 parent 683cb55 commit 8cd0832
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
- Document Hover Effect
- Tech User Details
- Fix crash issue
- Overlays
- Change Overlay Button from "Cancel" to "Close"

## 1.7.0-RC4

Expand Down
3 changes: 0 additions & 3 deletions src/components/overlays/NotFound/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ export default function NotFound() {
</DialogContent>

<DialogActions>
<Button variant="outlined" onClick={close}>
{`${t('global.actions.cancel')}`}
</Button>
<Button variant="contained" onClick={close}>
{`${t('global.actions.close')}`}
</Button>
Expand Down
3 changes: 0 additions & 3 deletions src/components/overlays/TechnicalUserInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ export default function TechnicalUserInfo({ id }: { id: string }) {
</DialogContent>

<DialogActions>
<Button variant="outlined" onClick={() => dispatch(closeOverlay())}>
{`${t('global.actions.cancel')}`}
</Button>
<Button variant="contained" onClick={() => dispatch(closeOverlay())}>
{`${t('global.actions.close')}`}
</Button>
Expand Down
4 changes: 2 additions & 2 deletions src/components/overlays/UpdateCertificate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export default function UpdateCertificate({ id }: { id: string }) {
</DialogContent>
<DialogActions>
<Button variant="outlined" onClick={() => dispatch(closeOverlay())}>
{t('global.actions.cancel')}
{t('global.actions.close')}
</Button>
</DialogActions>
</Dialog>
Expand Down Expand Up @@ -294,7 +294,7 @@ export default function UpdateCertificate({ id }: { id: string }) {
</DialogContent>
<DialogActions>
<Button variant="outlined" onClick={() => dispatch(closeOverlay())}>
{t('global.actions.cancel')}
{t('global.actions.close')}
</Button>

{loading ? (
Expand Down

0 comments on commit 8cd0832

Please sign in to comment.