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:
@@ -107,7 +107,7 @@ export function BossBattleFormModal({
|
|||||||
<label className="block text-sm font-medium mb-1">Type</label>
|
<label className="block text-sm font-medium mb-1">Type</label>
|
||||||
<select
|
<select
|
||||||
value={bossType}
|
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"
|
className="w-full px-3 py-2 border rounded-md dark:bg-gray-700 dark:border-gray-600"
|
||||||
>
|
>
|
||||||
{BOSS_TYPES.map((t) => (
|
{BOSS_TYPES.map((t) => (
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
|
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
|
||||||
import { advanceLeg, createGenlocke, getGamesByRegion, getGenlockes, getGenlocke, getGenlockeGraveyard, getGenlockeLineages, getLegSurvivors } from '../api/genlockes'
|
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() {
|
export function useGenlockes() {
|
||||||
return useQuery({
|
return useQuery({
|
||||||
|
|||||||
Reference in New Issue
Block a user