diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-09-16 16:29:20 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-09-16 16:29:20 +0200 |
| commit | 9a8b38c18a1853cdb63c7245fa8cc19735d2b569 (patch) | |
| tree | 6aad50a17e4ce55c5dab94bb4fab1475ca30648c /src/views/Clock.js | |
| parent | 0885b9db9e264a666cd0fa656442569a953fb7f7 (diff) | |
refactor utils
Diffstat (limited to 'src/views/Clock.js')
| -rw-r--r-- | src/views/Clock.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/views/Clock.js b/src/views/Clock.js index a394b62..fe5039a 100644 --- a/src/views/Clock.js +++ b/src/views/Clock.js @@ -3,6 +3,7 @@ */ import React, { useState, useEffect } from "react"; +import { rand } from "../utils/index.js"; const clock = { width: "20vw", @@ -104,5 +105,3 @@ export default function Clock({ utc }) { // hour transform origin: 40 x 515 // 88 / 533 // minute transform origin: 37 x 622 // 72 x 740 // second transform origin: 11 x 751 // 24 x 980 - -const rand = (n) => Math.random() * n; |
