balibabu
feat: generate select options for SystemModelSettingModal grouped by type and add llm icon and add upgrade button to UserSettingTeam and replace the icon in the sidebar of the user settings page (#128)
d80b399
raw
history blame
677 Bytes
import { useFetchUserInfo, useSelectUserInfo } from '@/hooks/userSettingHook';
import { Avatar } from 'antd';
import React from 'react';
import { history } from 'umi';
import styles from '../../index.less';
const App: React.FC = () => {
const userInfo = useSelectUserInfo();
const toSetting = () => {
history.push('/user-setting');
};
useFetchUserInfo();
return (
<Avatar
size={32}
onClick={toSetting}
className={styles.clickAvailable}
src={
userInfo.avatar ??
'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png'
}
/>
);
};
export default App;