Browse Source

removes dead code

Signed-off-by: Thomas Evans <tevans3@icloud.com>
jjarrett21 2 years ago
parent
commit
55df5b64e6
2 changed files with 1 additions and 68 deletions
  1. 1 1
      ui/src/CloudCost/CloudCostDetails.js
  2. 0 67
      ui/src/components/Sidebar.js

+ 1 - 1
ui/src/CloudCost/CloudCostDetails.js

@@ -1,5 +1,5 @@
 import * as React from "react";
-import { Box, Modal, Paper, Typography } from "@material-ui/core";
+import { Modal, Paper, Typography } from "@material-ui/core";
 import Warnings from "../components/Warnings";
 import CircularProgress from "@material-ui/core/CircularProgress";
 

+ 0 - 67
ui/src/components/Sidebar.js

@@ -1,67 +0,0 @@
-import * as React from "react";
-import {
-  Box,
-  CssBaseline,
-  Drawer,
-  Typography,
-  Toolbar,
-  List,
-  Divider,
-  ListItem,
-  ListItemIcon,
-  ListItemText,
-  Button,
-  AppBar,
-} from "@material-ui/core";
-
-import { MoveToInbox as InboxIcon, Mail as MailIcon } from "@material-ui/icons";
-
-const drawerWidth = 120;
-
-const Sidebar = () => {
-  return (
-    <Box sx={{ display: "flex" }}>
-      <CssBaseline />
-      <AppBar
-        position="fixed"
-        sx={{ width: `calc(100% - ${drawerWidth}px)`, ml: `${drawerWidth}px` }}
-      >
-        {/* <Toolbar>
-          <Typography variant="h6" noWrap component="div">
-            Permanent drawer
-          </Typography>
-        </Toolbar> */}
-      </AppBar>
-      <Drawer
-        sx={{
-          width: drawerWidth,
-          flexShrink: 0,
-          "& .MuiDrawer-paper": {
-            width: drawerWidth,
-            boxSizing: "border-box",
-          },
-        }}
-        variant="permanent"
-        anchor="left"
-      >
-        <Toolbar />
-        <Divider />
-        <List>
-          {["Allocations", "Cloud Cost"].map((text, index) => (
-            <ListItem key={text} disablePadding>
-              <Button>
-                <ListItemIcon>
-                  {index % 2 === 0 ? <InboxIcon /> : <MailIcon />}
-                </ListItemIcon>
-                <ListItemText primary={text} />
-              </Button>
-            </ListItem>
-          ))}
-        </List>
-        <Divider />
-      </Drawer>
-    </Box>
-  );
-};
-
-export default Sidebar;