Fix TypeScript errors in frontend build

Cast boss type select value to union type and remove unused
AdvanceLegInput import.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-09 18:10:38 +01:00
parent fd23d89e71
commit 972137acfb
2 changed files with 2 additions and 2 deletions

View File

@@ -107,7 +107,7 @@ export function BossBattleFormModal({
<label className="block text-sm font-medium mb-1">Type</label>
<select
value={bossType}
onChange={(e) => setBossType(e.target.value)}
onChange={(e) => setBossType(e.target.value as typeof bossType)}
className="w-full px-3 py-2 border rounded-md dark:bg-gray-700 dark:border-gray-600"
>
{BOSS_TYPES.map((t) => (

View File

@@ -1,6 +1,6 @@
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
import { advanceLeg, createGenlocke, getGamesByRegion, getGenlockes, getGenlocke, getGenlockeGraveyard, getGenlockeLineages, getLegSurvivors } from '../api/genlockes'
import type { AdvanceLegInput, CreateGenlockeInput } from '../types/game'
import type { CreateGenlockeInput } from '../types/game'
export function useGenlockes() {
return useQuery({