feat: update addons, sideload error modal, show reminder for preset settings

This commit is contained in:
David Ralph
2021-09-05 20:52:26 +01:00
parent 5baf067ff1
commit c63a13a4c2
11 changed files with 189 additions and 79 deletions

View File

@@ -18,8 +18,7 @@ import Stats from '../settings/sections/Stats';
import Keybinds from '../settings/sections/Keybinds';
export default function Settings() {
const { reminder, sections } = window.language.modals.main.settings;
const display = (localStorage.getItem('showReminder') === 'true') ? 'block' : 'none';
const { sections } = window.language.modals.main.settings;
return (
<>
@@ -41,11 +40,6 @@ export default function Settings() {
<div label={sections.changelog} name='changelog'><Changelog/></div>
<div label={sections.about.title} name='about'><About/></div>
</Tabs>
<div className='reminder-info' style={{ display }}>
<h1>{reminder.title}</h1>
<p>{reminder.message}</p>
<button className='pinNote' onClick={() => window.location.reload()}>{window.language.modals.main.error_boundary.refresh}</button>
</div>
</>
);
}