From 94a60e0f20a4855b1340ee3e094ea2d9f22627f1 Mon Sep 17 00:00:00 2001 From: Niklas Date: Sat, 25 Apr 2020 21:01:38 +0200 Subject: [PATCH] format fix --- src/components/App.tsx | 6 +++--- src/components/Clock.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 7318706..a7e69ba 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -12,9 +12,9 @@ class App extends React.Component { render(): JSX.Element { return
- - - + + +
; } diff --git a/src/components/Clock.tsx b/src/components/Clock.tsx index c5c9aa9..26a436a 100644 --- a/src/components/Clock.tsx +++ b/src/components/Clock.tsx @@ -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); }