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

@@ -111,6 +111,10 @@ export default class Clock extends React.PureComponent {
this.startTime(0);
}
componentWillUnmount() {
EventBus.remove('refresh');
}
render() {
let clockHTML = <h1 className='clock clock-container'>{this.state.time}<span className='ampm'>{this.state.ampm}</span></h1>;

View File

@@ -118,6 +118,10 @@ export default class DateWidget extends React.PureComponent {
this.getDate();
}
componentWillUnmount() {
EventBus.remove('refresh');
}
render() {
return <span className='date'>{this.state.date} <br/> {this.state.weekNumber}</span>;
}