fear: change requests to RTK query
All checks were successful
it-academy/dry-wash-pl/pipeline/pr-main This commit looks good

This commit is contained in:
2025-02-02 11:59:27 +03:00
parent ad1f948641
commit a00aaff29d
12 changed files with 145 additions and 238 deletions

View File

@@ -19,7 +19,7 @@ import { useTranslation } from 'react-i18next';
import MasterItem from '../MasterItem';
import MasterDrawer from '../MasterDrawer';
import { api } from '../../__data__/service/api';
import { useGetMastersQuery } from '../../__data__/service/api';
const TABLE_HEADERS = [
'name' as const,
@@ -35,12 +35,7 @@ const Masters = () => {
keyPrefix: 'dry-wash.arm.master',
});
const {
data: masters,
error,
isLoading,
isSuccess,
} = api.useGetMastersQuery();
const { data: masters, error, isLoading, isSuccess } = useGetMastersQuery();
useEffect(() => {
if (error) {