mirror of
https://github.com/mue/mue.git
synced 2026-07-17 22:14:13 +02:00
refactor: cleanup
This commit is contained in:
@@ -8,13 +8,6 @@ import SettingsFunctions from './modules/helpers/settings';
|
||||
import { ToastContainer } from 'react-toastify';
|
||||
|
||||
export default class App extends React.PureComponent {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
this.state = {
|
||||
toastDisplayTime: localStorage.getItem('toastDisplayTime') || 2500
|
||||
};
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
if (!localStorage.getItem('firstRun')) {
|
||||
SettingsFunctions.setDefaultSettings();
|
||||
@@ -27,7 +20,7 @@ export default class App extends React.PureComponent {
|
||||
return (
|
||||
<>
|
||||
<Background/>
|
||||
<ToastContainer position='bottom-right' autoClose={this.state.toastDisplayTime} newestOnTop={true} closeOnClick pauseOnFocusLoss/>
|
||||
<ToastContainer position='bottom-right' autoClose={localStorage.getItem('toastDisplayTime') || 2500} newestOnTop={true} closeOnClick pauseOnFocusLoss/>
|
||||
<div id='center'>
|
||||
<Widgets/>
|
||||
<Modals/>
|
||||
|
||||
Reference in New Issue
Block a user