File tree Expand file tree Collapse file tree
design/layout/LayoutElements Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import PageInstallation from './app/Docs/pages/Installation';
1010import PageRotate from './app/Docs/pages/Rotate' ;
1111import PageSpin from './app/Docs/pages/Spin' ;
1212import Error from './app/Error' ;
13- import Home from './app/Home' ;
1413import Icon from './app/Icon' ;
1514import Icons from './app/Icons' ;
1615import Layout from './design/layout/Layout' ;
@@ -22,7 +21,7 @@ const router = createHashRouter([
2221 children : [
2322 {
2423 path : '/' ,
25- element : < Home />
24+ element : < Icons />
2625 } ,
2726 {
2827 path : '/icons' ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -54,18 +54,9 @@ export default function Navbar() {
5454 < Button
5555 component = { NavLink }
5656 to = "/"
57- variant = { location ?. pathname === '/' ? 'solid' : 'plain' }
57+ variant = { location ?. pathname === '/' || location ?. pathname ?. startsWith ( '/icons' ) ? 'solid' : 'plain' }
5858 size = "sm"
59- color = { location ?. pathname === '/' ? 'primary' : 'primary' }
60- >
61- Home
62- </ Button >
63- < Button
64- component = { NavLink }
65- to = "/icons"
66- variant = { location ?. pathname ?. startsWith ( '/icons' ) ? 'solid' : 'plain' }
67- size = "sm"
68- color = { location ?. pathname ?. startsWith ( '/icons' ) ? 'primary' : 'primary' }
59+ color = { location ?. pathname === '/' || location ?. pathname ?. startsWith ( '/icons' ) ? 'primary' : 'primary' }
6960 >
7061 Icons
7162 </ Button >
You can’t perform that action at this time.
0 commit comments