update: dev params

This commit is contained in:
Vick Scarlet
2026-08-16 20:06:16 +08:00
committed by 神戸小鳥
parent 6eea7d0d87
commit 1f455ba353
3 changed files with 25 additions and 19 deletions
+2 -7
View File
@@ -1,8 +1,7 @@
import { useEffect, useState, useRef, useMemo } from 'react'
import { useEffect, useRef } from 'react'
import { usePicked, useEnd, useProfile } from '@remake/hooks'
import { useEndJudge } from '@/hooks/judge'
import { properties, judgeDisplay } from '@/display'
import { isDev } from '@/config'
import TalentComponent from '@/components/Talent'
import './Summary.css'
@@ -27,11 +26,7 @@ interface TalentListProps {
}
function TalentList({ picked, picker }: TalentListProps) {
const [profile] = useProfile()
const items = usePicked()
const talents = useMemo(() => {
if (!isDev || !profile.locked) return items
return new Set([...items, ...profile.locked])
}, [])
const talents = usePicked()
const hasInitialized = useRef(false)
useEffect(() => {
if (!profile.locked) return