Commit 4a51ef50 by Calcium-Ion Committed by GitHub

Merge pull request #613 from Calcium-Ion/mobile

feat: Add pricing link to HeaderBar component
parents b071c811 b30137ef
......@@ -67,6 +67,11 @@ const HeaderBar = () => {
itemKey: 'detail',
to: '/',
},
{
text: '定价',
itemKey: 'pricing',
to: '/pricing',
},
];
async function logout() {
......@@ -112,6 +117,7 @@ const HeaderBar = () => {
about: '/about',
login: '/login',
register: '/register',
pricing: '/pricing',
detail: '/detail',
home: '/',
};
......@@ -180,7 +186,7 @@ const HeaderBar = () => {
<>
<Switch
checkedText='🌞'
size={'large'}
size={styleState.isMobile?'default':'large'}
checked={theme === 'dark'}
uncheckedText='🌙'
onChange={(checked) => {
......@@ -205,7 +211,7 @@ const HeaderBar = () => {
>
{userState.user.username[0]}
</Avatar>
<span>{userState.user.username}</span>
{styleState.isMobile?null:<Text>{userState.user.username}</Text>}
</Dropdown>
</>
) : (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment