fix: fetch user by @tanstack/react-query #1306 (#1709)

### 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:
balibabu
2024-07-25 18:53:10 +08:00
committed by GitHub
parent 375f621405
commit 935687998e
22 changed files with 107 additions and 340 deletions

View File

@@ -1,11 +1,11 @@
import { Button, Card, Flex } from 'antd';
import { useTranslate } from '@/hooks/common-hooks';
import { useSelectUserInfo } from '@/hooks/user-setting-hooks';
import { useFetchUserInfo } from '@/hooks/user-setting-hooks';
import styles from './index.less';
const UserSettingTeam = () => {
const userInfo = useSelectUserInfo();
const { data: userInfo } = useFetchUserInfo();
const { t } = useTranslate('setting');
return (