Skip to content

Instantly share code, notes, and snippets.

@tomswales
Created February 15, 2018 22:28
Show Gist options
  • Save tomswales/43fd1d69a1c38081a0c9a09420b67e1a to your computer and use it in GitHub Desktop.
Save tomswales/43fd1d69a1c38081a0c9a09420b67e1a to your computer and use it in GitHub Desktop.
// Returns the basic layout of the clock
return (
<div className="clock">
<NumeralPair value={convertedHours}/>
<Spacer/>
<NumeralPair value={this.state.date.getMinutes()}/>
<Spacer/>
<NumeralPair value={this.state.date.getSeconds()}/>
<TimeSetting timePeriod={timePeriod} timeSetting={this.state.timeSetting} toggle={this.toggleTimeSetting}/>
</div>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment