From e8ba1f29ee657d0db402bd13586ecb38614cdfd0 Mon Sep 17 00:00:00 2001 From: high1 Date: Tue, 20 Jan 2026 18:24:30 +0100 Subject: [PATCH] feat: returned For in Graduations --- src/Graduations.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/Graduations.tsx b/src/Graduations.tsx index c735dc0..3d18f56 100644 --- a/src/Graduations.tsx +++ b/src/Graduations.tsx @@ -1,11 +1,11 @@ +import { For } from 'solid-js'; + import { ClockLine as Graduation } from '@/ClockLine'; import { rotate, seconds } from '@/common'; -// For not used because Graduations are static - minor optimization -export const Graduations = () => - [...Array(seconds).keys()] - .map<[boolean, number]>((index) => [index % 5 === 0, index]) - .map(([isHour, index]) => ( +export const Graduations = () => ( + index % 5 === 0)}> + {(isHour, index) => ( } graduation length={isHour ? 6 : 2.5} - transform={rotate(index / seconds, 0)} + transform={rotate(index() / seconds, 0)} /> - )); + )} + +);