Skip to content

Commit 4563f56

Browse files
committed
feat: add nav views
1 parent 67d798b commit 4563f56

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

src/ui/router.tsx

+16
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,22 @@ export const router = createHashRouter([
3535
path: 'requirements',
3636
element: <Requirements />,
3737
},
38+
{
39+
path: 'modules',
40+
element: <Requirements />,
41+
},
42+
{
43+
path: 'tenants',
44+
element: <Requirements />,
45+
},
46+
{
47+
path: 'servers',
48+
element: <Requirements />,
49+
},
50+
{
51+
path: 'secrets',
52+
element: <Requirements />,
53+
},
3854
{
3955
index: true,
4056
element: <Overview />,

src/ui/shell/navigation.tsx

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import ArrowRight from '@mui/icons-material/ArrowRight';
22
import EngineeringIcon from '@mui/icons-material/Engineering';
33
import Home from '@mui/icons-material/Home';
4+
import KeyIcon from '@mui/icons-material/Key';
45
import KeyboardArrowDown from '@mui/icons-material/KeyboardArrowDown';
56
import Settings from '@mui/icons-material/Settings';
67
import Box from '@mui/material/Box';
78
import Divider from '@mui/material/Divider';
8-
import IconButton from '@mui/material/IconButton';
9+
import ViewModuleIcon from '@mui/icons-material/ViewModule';
10+
import IconButton from '@mui/material/IconButton';import GroupIcon from '@mui/icons-material/Group';
911
import List from '@mui/material/List';
12+
import StorageIcon from '@mui/icons-material/Storage';
1013
import ListItem from '@mui/material/ListItem';
1114
import ListItemButton from '@mui/material/ListItemButton';
1215
import ListItemIcon from '@mui/material/ListItemIcon';
@@ -18,6 +21,10 @@ import { Link } from 'react-router-dom';
1821

1922
const data = [
2023
{ icon: <EngineeringIcon />, label: 'Requirements', to: 'requirements' },
24+
{ icon: <ViewModuleIcon />, label: 'Modules', to: 'modules' },
25+
{ icon: <GroupIcon />, label: 'Tenants', to: 'tenants' },
26+
{ icon: <StorageIcon />, label: 'Servers', to: 'servers' },
27+
{ icon: <KeyIcon />, label: 'Secrets', to: 'secrets' },
2128
];
2229

2330
const Nav = styled(List)<{ component?: React.ElementType }>({
@@ -123,7 +130,7 @@ export function Navigation() {
123130
}}
124131
>
125132
<ListItemText
126-
primary="Build"
133+
primary="Settings"
127134
primaryTypographyProps={{
128135
fontSize: 15,
129136
fontWeight: 'medium',

0 commit comments

Comments
 (0)