ImageTable: use dynamic get blueprints hook

Export a dynamic query hook depending on which backend is
being used (service or on-prem). This means we can just import
a query from the new `backendApi` and it will work for both
on-prem and the service.
This commit is contained in:
Gianluca Zuccarelli 2024-10-17 18:57:29 +01:00 committed by Lucas Garfield
parent f13ee49565
commit 41cdc7d553
4 changed files with 15 additions and 6 deletions

View file

@ -25,6 +25,7 @@ import BlueprintCard from './BlueprintCard';
import BlueprintsPagination from './BlueprintsPagination';
import { DEBOUNCED_SEARCH_WAIT_TIME } from '../../constants';
import { useGetBlueprintsQuery } from '../../store/backendApi';
import {
selectBlueprintSearchInput,
selectLimit,
@ -36,10 +37,7 @@ import {
} from '../../store/BlueprintSlice';
import { imageBuilderApi } from '../../store/enhancedImageBuilderApi';
import { useAppDispatch, useAppSelector } from '../../store/hooks';
import {
useGetBlueprintsQuery,
BlueprintItem,
} from '../../store/imageBuilderApi';
import { BlueprintItem } from '../../store/imageBuilderApi';
import { resolveRelPath } from '../../Utilities/path';
type blueprintSearchProps = {