Add Icon #20
Answered
by
j471n
therockstarind
asked this question in
Q&A
Add Icon
#20
-
bro i want to add icons to topbar links how can i do that. Line 5 in ab4d956 |
Beta Was this translation helpful? Give feedback.
Answered by
j471n
Feb 16, 2023
Replies: 1 comment 2 replies
-
You can do either of the following things:
function getIcon(route) {
switch(route) {
case "/about":
return <About />
}
} Something like that. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do two things -
FIRST
Then import this in your navbar and use it.
SECOND
now what you can do is create a function that will return the Icon based on the navigation route name such as following: