Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkellly committed May 24, 2024
1 parent b86c199 commit c4c79bb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/newTimer/drawScrambleCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useStore } from '@tanstack/react-store';
import { Badge } from '@/components/ui/badge';
import DrawScramble from '@/components/cubing/drawScramble';
import { Badge } from '@/components/ui/badge';
import { TimerStore } from './timerStore';

export default function DrawScrambleCard() {
Expand Down
7 changes: 5 additions & 2 deletions src/newTimer/resultsCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useVirtualizer } from '@tanstack/react-virtual';
import { useLiveQuery } from 'dexie-react-hooks';
import { useMemo, useRef, useState } from 'react';
import DrawScramble from '@/components/cubing/drawScramble';
import { Badge } from '@/components/ui/badge';
import { Button } from '@/components/ui/button';
import {
Expand All @@ -14,7 +15,6 @@ import {
import { ScrollArea } from '@/components/ui/scroll-area';
import { Penalty, Solve, db } from '@/lib/db';
import { dnfAnalyser } from '@/lib/dnfAnalyser';
import DrawScramble from '@/components/cubing/drawScramble';

function convertTimeToText(time: number) {
if (time == -1) return 'DNF';
Expand Down Expand Up @@ -135,7 +135,10 @@ export default function ResultsCard() {
Results
</Badge>
</legend>
<div ref={parentRef} className="h-64 px-1 w-full overflow-y-auto m-auto overflow-x-clip">
<div
ref={parentRef}
className="h-64 px-1 w-full overflow-y-auto m-auto overflow-x-clip"
>
<div
style={{
height: rowVirtualizer.getTotalSize(),
Expand Down
5 changes: 4 additions & 1 deletion src/routes/timer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { createFileRoute } from '@tanstack/react-router';
import { Timer as PrecisionTimer, TimerRenderer } from 'react-use-precision-timer';
import {
Timer as PrecisionTimer,
TimerRenderer,
} from 'react-use-precision-timer';
import { ScrollArea } from '@/components/ui/scroll-area';
import { cn } from '@/lib/utils';
import { ActionBar } from '@/newTimer/actionBar';
Expand Down

0 comments on commit c4c79bb

Please sign in to comment.