mirror of
https://github.com/mue/mue.git
synced 2026-07-12 10:46:12 +02:00
fix: slider, add about page loading text, background bug fix etc
This commit is contained in:
@@ -132,7 +132,6 @@ export default class Background extends React.PureComponent {
|
||||
case 'colour':
|
||||
// background colour
|
||||
const customBackgroundColour = localStorage.getItem('customBackgroundColour');
|
||||
if (customBackgroundColour !== 'Disabled' && customBackgroundColour !== '') {
|
||||
let gradientSettings = '';
|
||||
try {
|
||||
gradientSettings = JSON.parse(customBackgroundColour);
|
||||
@@ -148,7 +147,6 @@ export default class Background extends React.PureComponent {
|
||||
if (typeof gradientSettings === 'object' && gradientSettings !== null) {
|
||||
return this.gradientStyleBuilder(gradientSettings);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 'custom':
|
||||
@@ -188,7 +186,10 @@ export default class Background extends React.PureComponent {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
|
||||
@@ -6,11 +6,9 @@ import NotesIcon from '@material-ui/icons/AssignmentRounded';
|
||||
import Tooltip from '@material-ui/core/Tooltip';
|
||||
import Report from '@material-ui/icons/SmsFailed';
|
||||
|
||||
import './scss/index.scss';
|
||||
import Notes from './Notes';
|
||||
|
||||
// the user probably won't use the notes feature every time so we lazy load
|
||||
const Notes = React.lazy(() => import('./Notes'));
|
||||
const renderLoader = () => <></>;
|
||||
import './scss/index.scss';
|
||||
|
||||
export default function Navbar(props) {
|
||||
const language = window.language;
|
||||
@@ -20,9 +18,7 @@ export default function Navbar(props) {
|
||||
{(localStorage.getItem('notesEnabled') === 'true') ?
|
||||
<div className='notes'>
|
||||
<NotesIcon className='topicons'/>
|
||||
<React.Suspense fallback={renderLoader()}>
|
||||
<Notes/>
|
||||
</React.Suspense>
|
||||
<Notes/>
|
||||
</div>
|
||||
:null}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user