Update design of collection accounts editor (#38712)

This commit is contained in:
diondiondion authored and GitHub committed 2026-04-16 13:59:38 +00:00
1 parent 0ef00be494
commit 5a38246ee8
13 files changed
+240 -318

No files matched your search

@@ -1,4 +1,4 @@
import { useRef, useState } from 'react';
import { useCallback, useRef, useState } from 'react';
import { useDebouncedCallback } from 'use-debounce';
@@ -73,8 +73,13 @@ export function useSearchAccounts({
{ leading: true, trailing: true },
);
const resetAccounts = useCallback(() => {
setAccountIds([]);
}, []);
return {
searchAccounts,
resetAccounts,
accountIds,
isLoading: loadingState === 'loading',
isError: loadingState === 'error',