Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SMU-GDMU-CHINA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
SMU-GDMU-CHINA
Commits
3af6a340
Commit
3af6a340
authored
6 months ago
by
Yifeng Wang
Browse files
Options
Downloads
Patches
Plain Diff
reset icons in navbar
parent
4eec8381
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#449285
passed
6 months ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/Navbar.tsx
+3
-3
3 additions, 3 deletions
src/components/Navbar.tsx
with
3 additions
and
3 deletions
src/components/Navbar.tsx
+
3
−
3
View file @
3af6a340
...
...
@@ -19,7 +19,7 @@ export function Navbar() {
to
=
{
subpage
.
path
}
className
=
"custom-dropdown-menu"
>
<
SubpageIcon
className
=
"nav-i
con
"
/>
{
subpage
.
name
}
{
/* 添加图标 */
}
{
SubpageIcon
&&
<
SubpageI
con
/>
}
{
subpage
.
name
}
{
/* 添加图标 */
}
</
NavDropdown
.
Item
>
);
}
...
...
@@ -28,7 +28,7 @@ export function Navbar() {
return
(
<
NavDropdown
key
=
{
`page-
${
pageIndex
}
`
}
title
=
{
<>
<
ItemIcon
className
=
"nav-i
con
"
/>
{
item
.
name
}
</>
}
// 添加图标
title
=
{
<>
{
ItemIcon
&&
<
ItemI
con
/>
}
{
item
.
name
}
</>
}
// 添加图标
id
=
"basic-nav-dropdown"
className
=
"custom-dropdown-menu"
>
...
...
@@ -42,7 +42,7 @@ export function Navbar() {
key
=
{
`page-
${
pageIndex
}
`
}
as
=
{
Link
}
to
=
{
item
.
path
}
className
=
"custom-dropdown-menu"
>
<
ItemIcon
className
=
"nav-i
con
"
/>
{
item
.
name
}
{
/* 添加图标 */
}
{
ItemIcon
&&
<
ItemI
con
/>
}
{
item
.
name
}
{
/* 添加图标 */
}
</
Nav
.
Link
>
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment