Skip to content

Commit 748342f

Browse files
committed
Remove Home for just the icons page
1 parent 8312a8a commit 748342f

3 files changed

Lines changed: 3 additions & 172 deletions

File tree

docs/src/Router.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import PageInstallation from './app/Docs/pages/Installation';
1010
import PageRotate from './app/Docs/pages/Rotate';
1111
import PageSpin from './app/Docs/pages/Spin';
1212
import Error from './app/Error';
13-
import Home from './app/Home';
1413
import Icon from './app/Icon';
1514
import Icons from './app/Icons';
1615
import 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',

docs/src/app/Home.tsx

Lines changed: 0 additions & 159 deletions
This file was deleted.

docs/src/design/layout/LayoutElements/Navbar.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)