### What problem does this PR solve? fix: fetch user by @tanstack/react-query #1306 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { useOneNamespaceEffectsLoading } from '@/hooks/store-hooks';
|
||||
import { Form } from 'antd';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
@@ -18,9 +17,3 @@ export const useValidateSubmittable = () => {
|
||||
|
||||
return { submittable, form };
|
||||
};
|
||||
|
||||
export const useSelectSubmitUserInfoLoading = () =>
|
||||
useOneNamespaceEffectsLoading('settingModel', ['setting']);
|
||||
|
||||
export const useSelectUserInfoLoading = () =>
|
||||
useOneNamespaceEffectsLoading('settingModel', ['getUserInfo']);
|
||||
|
||||
Reference in New Issue
Block a user