From 2f61c34483ae1d1e1c4847cf08d0b50e82565269 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Tue, 20 Sep 2022 11:51:44 +0300 Subject: Formatting cleanup --- src/Geshem.tsx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/Geshem.tsx b/src/Geshem.tsx index 3bd99ad..dffb4b3 100644 --- a/src/Geshem.tsx +++ b/src/Geshem.tsx @@ -45,16 +45,10 @@ export function Geshem({ date }: GeshemProps) { const buildPlayback = async () => { const date = playback; - const hours = Array.from(Array(PLAYBACK_HOURS).keys()).map( - h => `${String(h).padStart(2, "0")}` - ); - const minutes = Array.from(Array(6).keys()).map( - m => `${String(m * 10).padStart(2, "0")}` - ); + const hours = Array.from(Array(PLAYBACK_HOURS).keys()).map(h => `${String(h).padStart(2, "0")}`); + const minutes = Array.from(Array(6).keys()).map(m => `${String(m * 10).padStart(2, "0")}`); const paths = hours.reduce( - (acc, h) => - acc.concat(minutes.map(m => `imgs/${date}/${h}${m}/280.png`)), - [] + (acc, h) => acc.concat(minutes.map(m => `imgs/${date}/${h}${m}/280.png`)), [] ); setImages(paths); }; -- cgit v1.3.1