feat: add UserSetting and set height of MoreIcon to 24px and replace logo (#111)

* feat: replace logo

* feat: set height of MoreIcon to 24px

* feat: add UserSetting
This commit is contained in:
balibabu
2024-03-07 19:13:16 +08:00
committed by GitHub
parent 436c52bbc5
commit 63e498ac79
18 changed files with 205 additions and 20 deletions

View File

@ -12,6 +12,10 @@
border-color: #1677ff;
}
.logoWrapper {
.pointerCursor;
}
.appIcon {
vertical-align: middle;
}

View File

@ -6,7 +6,7 @@ import Toolbar from '../right-toolbar';
import styles from './index.less';
import { useMemo } from 'react';
import { useCallback, useMemo } from 'react';
import { useLocation, useNavigate } from 'umi';
const { Header } = Layout;
@ -37,6 +37,10 @@ const RagHeader = () => {
navigate(path);
};
const handleLogoClick = useCallback(() => {
navigate('/');
}, [navigate]);
return (
<Header
style={{
@ -48,9 +52,9 @@ const RagHeader = () => {
height: '72px',
}}
>
<Space size={12}>
<Space size={12} onClick={handleLogoClick} className={styles.logoWrapper}>
<Logo className={styles.appIcon}></Logo>
<label className={styles.appName}>RagFlow</label>
<span className={styles.appName}>RagFlow</span>
</Space>
<Space size={[0, 8]} wrap>
<Radio.Group

View File

@ -24,7 +24,7 @@ const App: React.FC = () => {
}, [logout]);
const toSetting = () => {
history.push('/setting');
history.push('/user-setting');
};
const items: MenuProps['items'] = useMemo(() => {