Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4a51ef50
authored
Dec 11, 2024
by
Calcium-Ion
Committed by
GitHub
Dec 11, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #613 from Calcium-Ion/mobile
feat: Add pricing link to HeaderBar component
parents
b071c811
b30137ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
web/src/components/HeaderBar.js
+8
-2
No files found.
web/src/components/HeaderBar.js
View file @
4a51ef50
...
...
@@ -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
>
<
/
>
)
:
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment