|
@@ -1,5 +1,5 @@
|
|
|
import React from 'react';
|
|
|
-import { makeStyles, useTheme } from '@material-ui/core/styles';
|
|
|
+import { makeStyles, useTheme, withStyles } from '@material-ui/core/styles';
|
|
|
import AppBar from '@material-ui/core/AppBar';
|
|
|
import Toolbar from '@material-ui/core/Toolbar';
|
|
|
import Typography from '@material-ui/core/Typography';
|
|
@@ -29,9 +29,22 @@ import CloudUploadIcon from '@material-ui/icons/CloudUpload';
|
|
|
import HelpOutlineIcon from '@material-ui/icons/HelpOutline';
|
|
|
import SettingsIcon from '@material-ui/icons/Settings';
|
|
|
import Avatar from '@material-ui/core/Avatar';
|
|
|
-
|
|
|
+import Icon from '@material-ui/core/Icon';
|
|
|
+import AddCircle from '@material-ui/icons/AddCircle';
|
|
|
+import CloudIcon from '@material-ui/icons/Cloud';
|
|
|
+import LinearProgress from '@material-ui/core/LinearProgress';
|
|
|
const drawerWidth = 240;
|
|
|
|
|
|
+const BorderLinearProgress = withStyles((theme) => ({
|
|
|
+ colorPrimary: {
|
|
|
+ backgroundColor: theme.palette.grey[theme.palette.type === 'light' ? 200 : 700],
|
|
|
+ },
|
|
|
+ bar: {
|
|
|
+ borderRadius: 5,
|
|
|
+ backgroundColor: '#1a90ff',
|
|
|
+ },
|
|
|
+}))(LinearProgress);
|
|
|
+
|
|
|
const useStyles = makeStyles((theme) => ({
|
|
|
root: {
|
|
|
flexGrow: 1,
|
|
@@ -199,7 +212,22 @@ export default function ButtonAppBar() {
|
|
|
ListItem >
|
|
|
))
|
|
|
} <
|
|
|
- /List> < /
|
|
|
+ Divider / > {
|
|
|
+ ['儲存空間'].map((text, index) => ( <
|
|
|
+ ListItem button key = { text } >
|
|
|
+ <
|
|
|
+ ListItemIcon > { < CloudIcon / > } < /ListItemIcon> <
|
|
|
+ ListItemText primary = { text }
|
|
|
+ secondary = <
|
|
|
+ BorderLinearProgress variant = "determinate"
|
|
|
+ value = { 50 }
|
|
|
+ /> / >
|
|
|
+ <
|
|
|
+ /
|
|
|
+ ListItem >
|
|
|
+ ))
|
|
|
+ } < /
|
|
|
+ List > < /
|
|
|
Drawer > <
|
|
|
main className = { classes.content } >
|
|
|
<
|