mirror of
https://github.com/mue/mue.git
synced 2026-07-22 08:17:28 +02:00
refactor and fix some things
This commit is contained in:
@@ -11,6 +11,7 @@ export default class DateWidget extends React.PureComponent {
|
||||
|
||||
getDate() {
|
||||
const date = new Date();
|
||||
|
||||
const short = localStorage.getItem('short');
|
||||
const dateFormat = localStorage.getItem('dateFormat');
|
||||
|
||||
@@ -54,7 +55,6 @@ export default class DateWidget extends React.PureComponent {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
if (localStorage.getItem('date') === 'false') return;
|
||||
this.getDate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user