Skip to content

Commit

Permalink
Added icons to some settings buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
ReStartQ committed Dec 6, 2023
1 parent 8b023af commit de559be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/renderer/components/settings/reset/ResetButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
DialogContentText,
DialogTitle,
} from '@mui/material';
import PowerSettingsNewIcon from '@mui/icons-material/PowerSettingsNew';

export default function ResetButton() {
const [open, setOpen] = React.useState(false);
Expand All @@ -30,6 +31,7 @@ export default function ResetButton() {
onClick={handleClickOpen}
fullWidth
>
<PowerSettingsNewIcon sx={{ mr: '5px' }} />
Reset Settings
</Button>
<Dialog
Expand All @@ -55,6 +57,7 @@ export default function ResetButton() {
variant="contained"
color="error"
>
<PowerSettingsNewIcon sx={{ mr: '5px' }} />
Reset
</Button>
<Button onClick={() => handleClose(false)} variant="contained">
Expand Down
4 changes: 4 additions & 0 deletions src/renderer/components/settings/services/AccountSection.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Box, Button, Input } from '@mui/material';
import TokenIcon from '@mui/icons-material/Token';
import SaveIcon from '@mui/icons-material/Save';
import { useState } from 'react';

export default function AccountSection() {
Expand Down Expand Up @@ -68,6 +70,7 @@ export default function AccountSection() {
}}
sx={{ width: '50%' }}
>
<TokenIcon sx={{ mr: '5px' }} />
Get AniList Token
</Button>
<Button
Expand All @@ -76,6 +79,7 @@ export default function AccountSection() {
onClick={handleSave}
sx={{ width: '50%' }}
>
<SaveIcon sx={{ mr: '5px' }} />
Save
</Button>
</Box>
Expand Down

0 comments on commit de559be

Please sign in to comment.