Skip to content

Commit de748e1

Browse files
Raoul StraczowskiRaoul Straczowski
authored andcommitted
fix typing
1 parent 60da982 commit de748e1

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "tsc -b && vite build",
9+
"typecheck": "tsc --noEmit",
910
"lint": "eslint .",
1011
"preview": "vite preview",
1112
"generate-voice": "tsx src/scripts/generate-voicevox.ts",

src/components/SettingsPanel.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useState, useRef, useEffect } from 'react'
22
import settingsIcon from '../assets/settings.svg'
3-
import type { Difficulty } from '../store'
3+
import { Difficulty } from '../types'
44

55
interface SettingsPanelProps {
66
difficulty: Difficulty
@@ -28,9 +28,9 @@ export const SettingsPanel = ({ difficulty, onDifficultyChange }: SettingsPanelP
2828
}, [isOpen])
2929

3030
const difficultyOptions: Array<{ value: Difficulty; label: string }> = [
31-
{ value: 'hours-only', label: 'Hours Only' },
32-
{ value: 'hours-and-half', label: 'Hours and Half' },
33-
{ value: 'exact-time', label: 'Exact Time' },
31+
{ value: Difficulty.HOURS_ONLY, label: 'Hours Only' },
32+
{ value: Difficulty.HOURS_AND_HALF, label: 'Hours and Half' },
33+
{ value: Difficulty.EXACT_TIME, label: 'Exact Time' },
3434
]
3535

3636
return (

0 commit comments

Comments
 (0)