restaurants
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
||||
GroupIconsResponse,
|
||||
ReportsResponse,
|
||||
SystemRolesResponse,
|
||||
RestaurantAdminsResponse,
|
||||
} from "../types/Types";
|
||||
|
||||
export const useGetIcons = () => {
|
||||
@@ -59,7 +60,7 @@ export const useGetRestaurants = () => {
|
||||
};
|
||||
|
||||
export const useGetRestaurantAdmins = (restaurantId: string) => {
|
||||
return useQuery({
|
||||
return useQuery<RestaurantAdminsResponse>({
|
||||
queryKey: ["restaurant-admins", restaurantId],
|
||||
queryFn: () => api.getRestaurantAdmins(restaurantId),
|
||||
enabled: !!restaurantId,
|
||||
|
||||
Reference in New Issue
Block a user