mirror of
https://github.com/mue/mue.git
synced 2026-07-22 16:27:32 +02:00
fix: improve dropdown styles, add reset modal language support
This commit is contained in:
@@ -3,14 +3,16 @@ import React from 'react';
|
||||
import SettingsFunctions from '../../../../modules/helpers/settings';
|
||||
|
||||
export default function ResetModal(props) {
|
||||
const language = window.language.modals.main.settings.sections.advanced.reset_modal;
|
||||
|
||||
return (
|
||||
<>
|
||||
<h3 style={{'textAlign': 'center'}}>WARNING</h3>
|
||||
<h4>Do you want to reset Mue?</h4>
|
||||
<p>This will delete all data. If you want to keep your data and preferences, please export first.</p>
|
||||
<h3 style={{'textAlign': 'center'}}>{language.title}</h3>
|
||||
<h4>{language.question}</h4>
|
||||
<p>{language.information}</p>
|
||||
<div className='resetfooter'>
|
||||
<button className='reset' onClick={() => SettingsFunctions.setDefaultSettings('reset')}>Reset</button>
|
||||
<button className='import' onClick={props.modalClose}>Cancel</button>
|
||||
<button className='reset' onClick={() => SettingsFunctions.setDefaultSettings('reset')}>{window.language.modals.main.settings.buttons.reset}</button>
|
||||
<button className='import' onClick={props.modalClose}>{language.cancel}</button>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user