fear: change requests to RTK query
All checks were successful
it-academy/dry-wash-pl/pipeline/pr-main This commit looks good
All checks were successful
it-academy/dry-wash-pl/pipeline/pr-main This commit looks good
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user