Finally stop using react-scripts

This commit is contained in:
David Ralph
2021-01-17 18:07:26 +00:00
parent a9c06fd935
commit c68228381b
28 changed files with 129 additions and 45 deletions

View File

@@ -1,4 +1,5 @@
import React from 'react';
import Analog from 'react-clock';
import './clock.scss';
@@ -28,7 +29,7 @@ export default class Clock extends React.PureComponent {
// Analog clock
if (localStorage.getItem('analog') === 'true') {
require('react-clock/dist/Clock.css'); // load analog clock css
this.setState({
time: now
});

View File

@@ -1,4 +1,5 @@
import React from 'react';
import dtf from '@eartharoid/dtf';
export default class DateWidget extends React.PureComponent {