Search Provider settings updates

This commit is contained in:
Sean Edmunds
2025-03-21 11:05:01 -05:00
parent 27a7dd2fb9
commit 50fec41aba
4 changed files with 426 additions and 29 deletions

View File

@@ -29,23 +29,15 @@ import WolClientSettingsItem from './WolClientSettingsItem';
const WolClientSettings = () => {
const endpoint = 'api/wolClients';
const {
data: wolClientsData,
isFetched: wolClientsIsFetched,
isFetching: wolClientsIsFetching,
isLoading: wolClientsIsLoading,
} = useQueryAPI({
const { data: wolClientsData, isFetched: wolClientsIsFetched } = useQueryAPI({
endpoint: endpoint,
});
const [wolClients, setWolClients] = useState<any>([]);
const { mutateAsync } = useMutationAPI();
const { theme } = useCommonHooks();
const [newWolClient, setNewWolClient] = useState<any>({
name: '',
url: '',
icon: '',
baseUrl: '',
filterName: '',
hostname: '',
macAddress: '',
});
const [modalOpened, { open: openModal, close: closeModal }] = useDisclosure(false);
const [searchValue, setSearchValue] = useState('');