fix: consitency of reset icons

This commit is contained in:
alexsparkes 2024-01-29 14:31:19 +00:00
parent afc1c603d2
commit 8eb9e25a9c
3 changed files with 13 additions and 0 deletions

View File

@ -51,6 +51,14 @@
margin-top: 10px;
width: 283px;
}
.link {
margin-top: 10px;
display: flex;
flex-flow: row;
gap: 15px;
align-items: center;
}
}
}
}

View File

@ -2,6 +2,7 @@ import variables from 'modules/variables';
import { PureComponent } from 'react';
import { toast } from 'react-toastify';
import { TextField } from '@mui/material';
import { MdRefresh } from 'react-icons/md';
import EventBus from 'modules/helpers/eventbus';
@ -72,6 +73,7 @@ class Text extends PureComponent {
/>
)}
<span className="link" onClick={this.resetItem}>
<MdRefresh />
{variables.getMessage('modals.main.settings.buttons.reset')}
</span>
</>

View File

@ -1,6 +1,8 @@
import variables from 'modules/variables';
import { PureComponent } from 'react';
import { MdAutoAwesome } from 'react-icons/md';
import Header from '../Header';
import Radio from '../Radio';
import Dropdown from '../Dropdown';
@ -106,6 +108,7 @@ export default class TimeSettings extends PureComponent {
InputLabelProps={{ shrink: true }}
/>
<span className="link" onClick={() => this.getAuto()}>
<MdAutoAwesome />
{variables.getMessage('modals.main.settings.sections.weather.auto')}
</span>
</SettingsItem>