Daniel Kantor commited on
Commit
9ca2b96
·
1 Parent(s): 0cfafdf

hide voting

Browse files
frontend/src/components/Navigation/Navigation.js CHANGED
@@ -89,19 +89,19 @@ const Navigation = ({ onToggleTheme, mode }) => {
89
  },
90
  "&::after": isActive
91
  ? {
92
- content: '""',
93
- position: "absolute",
94
- bottom: "-4px",
95
- left: "0",
96
- width: "100%",
97
- height: "2px",
98
- backgroundColor: (theme) =>
99
- alpha(
100
- theme.palette.text.primary,
101
- theme.palette.mode === "dark" ? 0.3 : 0.2
102
- ),
103
- borderRadius: "2px",
104
- }
105
  : {},
106
  });
107
 
@@ -258,7 +258,7 @@ const Navigation = ({ onToggleTheme, mode }) => {
258
  >
259
  Submit model
260
  </MenuItem>
261
- <MenuItem
262
  onClick={(e) => {
263
  handleNavigation("/vote")(e);
264
  handleMenuClose();
@@ -266,7 +266,7 @@ const Navigation = ({ onToggleTheme, mode }) => {
266
  selected={location.pathname === "/vote"}
267
  >
268
  Vote for next model
269
- </MenuItem>
270
 
271
  {/* Separator */}
272
  <Box
@@ -295,7 +295,7 @@ const Navigation = ({ onToggleTheme, mode }) => {
295
  },
296
  }}
297
  >
298
- About Stacklok
299
  <OpenInNewIcon />
300
  </MenuItem>
301
  </Menu>
@@ -366,12 +366,12 @@ const Navigation = ({ onToggleTheme, mode }) => {
366
  >
367
  Submit model
368
  </Box>
369
- <Box
370
  onClick={handleNavigation("/vote")}
371
  sx={linkStyle(location.pathname === "/vote")}
372
  >
373
  Vote for next model
374
- </Box>
375
  </Box>
376
 
377
  <Separator />
@@ -444,7 +444,7 @@ const Navigation = ({ onToggleTheme, mode }) => {
444
  </Box>
445
  )}
446
  </Toolbar>
447
- </AppBar>
448
  );
449
  };
450
 
 
89
  },
90
  "&::after": isActive
91
  ? {
92
+ content: '""',
93
+ position: "absolute",
94
+ bottom: "-4px",
95
+ left: "0",
96
+ width: "100%",
97
+ height: "2px",
98
+ backgroundColor: (theme) =>
99
+ alpha(
100
+ theme.palette.text.primary,
101
+ theme.palette.mode === "dark" ? 0.3 : 0.2
102
+ ),
103
+ borderRadius: "2px",
104
+ }
105
  : {},
106
  });
107
 
 
258
  >
259
  Submit model
260
  </MenuItem>
261
+ {/*<MenuItem
262
  onClick={(e) => {
263
  handleNavigation("/vote")(e);
264
  handleMenuClose();
 
266
  selected={location.pathname === "/vote"}
267
  >
268
  Vote for next model
269
+ </MenuItem>/*}
270
 
271
  {/* Separator */}
272
  <Box
 
295
  },
296
  }}
297
  >
298
+ About Stacklok
299
  <OpenInNewIcon />
300
  </MenuItem>
301
  </Menu>
 
366
  >
367
  Submit model
368
  </Box>
369
+ {/*<Box
370
  onClick={handleNavigation("/vote")}
371
  sx={linkStyle(location.pathname === "/vote")}
372
  >
373
  Vote for next model
374
+ </Box>*/}
375
  </Box>
376
 
377
  <Separator />
 
444
  </Box>
445
  )}
446
  </Toolbar>
447
+ </AppBar >
448
  );
449
  };
450