|
|
@@ -1,7 +1,7 @@
|
|
|
import React from 'react';
|
|
|
import { useQuery } from '@tanstack/react-query';
|
|
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@d8d/shared-ui-components/components/ui/select';
|
|
|
-import { merchantClient } from '../api/merchantClient';
|
|
|
+import { merchantClientManager } from '../api/merchantClient';
|
|
|
|
|
|
interface MerchantSelectorProps {
|
|
|
value?: number;
|
|
|
@@ -21,7 +21,7 @@ export const MerchantSelector: React.FC<MerchantSelectorProps> = ({
|
|
|
const { data: merchants, isLoading } = useQuery({
|
|
|
queryKey: ['merchants'],
|
|
|
queryFn: async () => {
|
|
|
- const res = await merchantClient.$get({
|
|
|
+ const res = await merchantClientManager.get().index.$get({
|
|
|
query: {
|
|
|
page: 1,
|
|
|
pageSize: 100
|