Skip to content

Commit

Permalink
Merge pull request #613 from Calcium-Ion/mobile
Browse files Browse the repository at this point in the history
feat: Add pricing link to HeaderBar component
  • Loading branch information
Calcium-Ion authored Dec 11, 2024
2 parents 21d4dca + f0d9c89 commit 0455f30
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions web/src/components/HeaderBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ const HeaderBar = () => {
itemKey: 'detail',
to: '/',
},
{
text: '定价',
itemKey: 'pricing',
to: '/pricing',
},
];

async function logout() {
Expand Down Expand Up @@ -112,6 +117,7 @@ const HeaderBar = () => {
about: '/about',
login: '/login',
register: '/register',
pricing: '/pricing',
detail: '/detail',
home: '/',
};
Expand Down Expand Up @@ -180,7 +186,7 @@ const HeaderBar = () => {
<>
<Switch
checkedText='🌞'
size={'large'}
size={styleState.isMobile?'default':'large'}
checked={theme === 'dark'}
uncheckedText='🌙'
onChange={(checked) => {
Expand All @@ -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>
</>
) : (
Expand Down

0 comments on commit 0455f30

Please sign in to comment.