File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,11 @@ interface Props {
2626}
2727
2828const drawerWidth = 240 ;
29- const navItems = [ 'Login' , 'Register' , 'Help' ] ;
29+ const navItems = [
30+ { name : 'Login' , link : '/login' } ,
31+ { name : 'Register' , link : '/register' } ,
32+ { name : 'Help' , link : '/help' } ,
33+ ] ;
3034
3135export default function Navigation ( props : Props ) {
3236 const { window } = props ;
@@ -44,9 +48,9 @@ export default function Navigation(props: Props) {
4448 < Divider />
4549 < List >
4650 { navItems . map ( ( item ) => (
47- < ListItem key = { item } disablePadding >
51+ < ListItem key = { item . name } disablePadding >
4852 < ListItemButton sx = { { textAlign : 'center' } } >
49- < ListItemText primary = { item } />
53+ < ListItemText primary = { item . name } />
5054 </ ListItemButton >
5155 </ ListItem >
5256 ) ) }
@@ -80,8 +84,8 @@ export default function Navigation(props: Props) {
8084 </ Typography >
8185 < Box sx = { { display : { xs : 'none' , sm : 'block' } } } >
8286 { navItems . map ( ( item ) => (
83- < Button key = { item } sx = { { color : '#fff' } } >
84- { item }
87+ < Button key = { item . name } sx = { { color : '#fff' } } href = { item . link } >
88+ { item . name }
8589 </ Button >
8690 ) ) }
8791 </ Box >
You can’t perform that action at this time.
0 commit comments