This commit is contained in:
David Ralph
2020-11-28 13:24:40 +00:00
parent a3ba90d1da
commit 4486050d06
14 changed files with 20 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react';
import * as Constants from '../../modules/Constants';
import * as Constants from '../../modules/constants';
export default class Background extends React.PureComponent {
gradientStyleBuilder(gradientSettings) {

View File

@@ -16,6 +16,11 @@ export default class Clock extends React.PureComponent {
this.timer = setTimeout(() => {
const now = new Date();
// Percentage
if (localStorage.getItem('percentageComplete') === 'true') {
return this.setState({ time: (now.getHours() / 24).toFixed(2) + '%'})
}
// Analog clock
if (localStorage.getItem('analog') === 'true') this.setState({ time: now });
else {

View File

@@ -2,7 +2,7 @@ import React from 'react';
import Quotes from '@muetab/quotes';
import FileCopy from '@material-ui/icons/FilterNone';
import { toast } from 'react-toastify';
import * as Constants from '../../modules/Constants';
import * as Constants from '../../modules/constants';
import TwitterIcon from '@material-ui/icons/Twitter';
import StarIcon from '@material-ui/icons/Star';
import StarIcon2 from '@material-ui/icons/StarBorder';