Skip to content

Commit

Permalink
fix: make action buttons variant contained
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Oct 7, 2022
1 parent 5b88a93 commit 74eb1c6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ export const ActiveSwapsPage = () => {
</DialogContent>
<DialogActions>
<Button onClick={toggleDialog}>{t('button.cancel')}</Button>
<Button onClick={() => deleteRoutes('active')} autoFocus>
<Button
variant="contained"
onClick={() => deleteRoutes('active')}
autoFocus
>
{t('button.delete')}
</Button>
</DialogActions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const SelectWalletPage = () => {
</DialogContentText>
</DialogContent>
<DialogActions>
<Button onClick={closeDialog} autoFocus>
<Button variant="contained" onClick={closeDialog} autoFocus>
{t('button.ok')}
</Button>
</DialogActions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const SwapDetailsPage: React.FC = () => {
</DialogContent>
<DialogActions>
<Button onClick={toggleDialog}>{t('button.cancel')}</Button>
<Button onClick={handleDeleteRoute} autoFocus>
<Button variant="contained" onClick={handleDeleteRoute} autoFocus>
{t('button.delete')}
</Button>
</DialogActions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ export const SwapHistoryPage: React.FC = () => {
</DialogContent>
<DialogActions>
<Button onClick={toggleDialog}>{t('button.cancel')}</Button>
<Button onClick={() => deleteRoutes('completed')} autoFocus>
<Button
variant="contained"
onClick={() => deleteRoutes('completed')}
autoFocus
>
{t('button.delete')}
</Button>
</DialogActions>
Expand Down

0 comments on commit 74eb1c6

Please sign in to comment.