Bug fixes

This commit is contained in:
David Ralph
2020-10-16 13:15:10 +01:00
parent 52cc9cb579
commit a865cb87ef
9 changed files with 18 additions and 13 deletions

View File

@@ -65,8 +65,11 @@ export default class Clock extends React.PureComponent {
}
render() {
if (localStorage.getItem('time') === 'false') return null;
let clockHTML = <h1 className='clock'>{this.state.time}<span className='ampm'>{this.state.ampm}</span> </h1>;
if (localStorage.getItem('analog') === 'true') clockHTML = <Analog className='analogclock' value={this.state.time} renderHourMarks={false} renderMinuteMarks={false} />;
return clockHTML;
}
}