v0.3: Extension #3

Merged
niklas merged 16 commits from develop into master 2020-04-25 20:38:57 +00:00
2 changed files with 6 additions and 6 deletions
Showing only changes of commit 94a60e0f20 - Show all commits

View File

@ -12,9 +12,9 @@ class App extends React.Component {
render(): JSX.Element {
return <div>
<div className="center-wrapper">
<Clock/>
<Search/>
<Quick/>
<Clock />
<Search />
<Quick />
</div>
</div>;
}

View File

@ -45,12 +45,12 @@ class Clock extends React.Component<{}, State> {
}
startTimer() {
this.interval = setInterval(()=>{
this.interval = setInterval(() => {
this.updateTime();
// This will change only if the tab stays open after midnight. But still, lets cover that
this.updateDate();
},1000);
}, 1000);
}
componentDidMount() {
@ -59,7 +59,7 @@ class Clock extends React.Component<{}, State> {
this.startTimer();
}
componentWillUnmount(){
componentWillUnmount() {
clearInterval(this.interval);
}