File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -151,13 +151,15 @@ export default function Navbar({
151
151
< SearchBar query = { query } setQuery = { setQuery } small />
152
152
</ ListItem >
153
153
{ menu . map ( ( item ) => (
154
- < NextLink key = { item . name } href = { item . href } >
155
- < MenuItem > { item . name } </ MenuItem >
156
- </ NextLink >
154
+ < MenuItem key = { item . name } >
155
+ < Button href = { item . href } target = { item . target } className = { classes . sidebarLink } >
156
+ { item . name }
157
+ </ Button >
158
+ </ MenuItem >
157
159
) ) }
158
- < NextLink href = "https://github.com/TheAlgorithms" >
159
- < MenuItem > GitHub</ MenuItem >
160
- </ NextLink >
160
+ < MenuItem >
161
+ < a className = { classes . unstyledLink } href = "https://github.com/TheAlgorithms" target = "_blank" > GitHub</ a >
162
+ </ MenuItem >
161
163
< MenuItem onClick = { ( ) => switchTheme ( ) } >
162
164
{ darkTheme ? t ( "lightModeNavbar" ) : t ( "darkModeNavbar" ) }
163
165
</ MenuItem >
Original file line number Diff line number Diff line change 64
64
width : 1em ;
65
65
height : 1em ;
66
66
}
67
+
68
+ .sidebarLink {
69
+ padding : 0px !important ;
70
+ min-width : auto !important ;
71
+ }
72
+
73
+ .unstyledLink {
74
+ color : # fff ;
75
+ text-decoration : none;
76
+ }
You can’t perform that action at this time.
0 commit comments