fix: update admin flows and review report
This commit is contained in:
@@ -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)
|
||||
}}
|
||||
/>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user