format fix
This commit is contained in:
		
							parent
							
								
									a38d016137
								
							
						
					
					
						commit
						94a60e0f20
					
				@ -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>;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
@ -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);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user