fix: update admin flows and review report

This commit is contained in:
2026-04-10 08:09:48 +08:00
parent f1bbba48c3
commit dbff591039
7 changed files with 610 additions and 9 deletions

View File

@@ -530,13 +530,13 @@ describe('Interaction Behavior', () => {
const handleSearch = vi.fn()
let timeoutId: ReturnType<typeof setTimeout>
const TestSearchInput = ({ onSearch }: { onSearch: (value: string) => void }) => {
let timeout: ReturnType<typeof setTimeout>
return (
<input
onChange={(e) => {
clearTimeout(timeout)
timeout = setTimeout(() => onSearch(e.target.value), 300)
clearTimeout(timeoutId)
timeoutId = setTimeout(() => onSearch(e.target.value), 300)
}}
/>
)