Skip to content

Commit

Permalink
Revert conditional alert
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Dec 5, 2022
1 parent 6e7a322 commit bf6d1b4
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/components/settings/ImportAllDialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,12 @@ const ImportAllDialog = ({ handleClose }: { handleClose: () => void }): ReactEle
<div className={css.horizontalDivider} />

<Typography>Only JSON files exported from a Safe can be imported.</Typography>

{!!jsonData && (
<Alert severity="warning" sx={{ mt: 3 }}>
<AlertTitle sx={{ fontWeight: 700 }}>Overwrite your current data?</AlertTitle>
This action will overwrite your currently added Safes and address book entries with those from the imported
file.
</Alert>
)}
<Alert severity="warning" sx={{ mt: 3 }}>
<AlertTitle sx={{ fontWeight: 700 }}>Overwrite your current data?</AlertTitle>
This action will overwrite your currently added Safes and address book entries with those from the imported
file.
</Alert>
</DialogContent>

<DialogActions>
<Button onClick={handleClose}>Cancel</Button>
<Button
Expand Down

0 comments on commit bf6d1b4

Please sign in to comment.