2021-07-06 18:38:20 +00:00
|
|
|
import CloseIcon from '@material-ui/icons/Close';
|
|
|
|
import DeleteIcon from '@material-ui/icons/Delete';
|
|
|
|
|
2021-03-31 11:21:37 +00:00
|
|
|
import SettingsFunctions from '../../../../modules/helpers/settings';
|
|
|
|
|
2021-03-19 20:18:57 +00:00
|
|
|
export default function ResetModal(props) {
|
2021-04-02 21:27:44 +00:00
|
|
|
const language = window.language.modals.main.settings.sections.advanced.reset_modal;
|
|
|
|
|
2021-04-17 20:38:16 +00:00
|
|
|
const reset = () => {
|
2021-06-30 10:27:54 +00:00
|
|
|
window.stats.postEvent('setting', 'Reset');
|
2021-04-17 20:38:16 +00:00
|
|
|
SettingsFunctions.setDefaultSettings('reset');
|
|
|
|
window.location.reload();
|
|
|
|
}
|
|
|
|
|
2021-03-19 20:18:57 +00:00
|
|
|
return (
|
2021-04-02 11:31:24 +00:00
|
|
|
<>
|
2021-07-06 18:38:20 +00:00
|
|
|
<h1 style={{ textAlign: 'center' }}>{language.title}</h1>
|
|
|
|
<span>{language.question}</span>
|
|
|
|
<br/><br/>
|
|
|
|
<span>{language.information}</span>
|
2021-03-31 11:21:37 +00:00
|
|
|
<div className='resetfooter'>
|
2021-07-06 18:38:20 +00:00
|
|
|
<button className='round reset' style={{ marginLeft: 0 }} onClick={() => reset()}>
|
|
|
|
<DeleteIcon/>
|
|
|
|
</button>
|
|
|
|
<button className='round import' style={{ marginLeft: '5px' }} onClick={props.modalClose}>
|
|
|
|
<CloseIcon/>
|
|
|
|
</button>
|
2021-03-19 20:18:57 +00:00
|
|
|
</div>
|
2021-04-02 11:31:24 +00:00
|
|
|
</>
|
2021-03-19 20:18:57 +00:00
|
|
|
);
|
|
|
|
}
|