feat: new welcome modal, refactor many things, various bug fixes, use material-ui v5 etc

Co-authored-by: Alex Sparkes <turbomarshmello@gmail.com>
This commit is contained in:
David Ralph
2021-07-02 21:29:33 +01:00
parent c6b65f943a
commit cf36ced2a7
61 changed files with 782 additions and 324 deletions

View File

@@ -11,14 +11,10 @@ import { ToastContainer } from 'react-toastify';
export default class App extends React.PureComponent {
componentDidMount() {
if (!localStorage.getItem('firstRun')) {
SettingsFunctions.setDefaultSettings();
window.location.reload();
}
// 4.0 -> 5.0 (the key below is only on 5.0)
// now featuring 5.0 -> 5.1
if (!localStorage.getItem('order') || !localStorage.getItem('backgroundFilterAmount')) {
// the firstRun check was moved here because the old function was useless
if (!localStorage.getItem('firstRun') || !localStorage.getItem('order') || !localStorage.getItem('backgroundFilterAmount')) {
SettingsFunctions.moveSettings();
window.location.reload();
}