|
|
@@ -53,6 +53,7 @@ import ArrowBackIosIcon from '@material-ui/icons/ArrowBackIos';
|
|
|
import ArrowForwardIosIcon from '@material-ui/icons/ArrowForwardIos';
|
|
|
import GridList from '@material-ui/core/GridList';
|
|
|
import GridListTile from '@material-ui/core/GridListTile';
|
|
|
+import MiddlePanel from './MiddlePanel';
|
|
|
|
|
|
const drawerWidth = 240;
|
|
|
|
|
|
@@ -202,7 +203,14 @@ export default function ButtonAppBar() {
|
|
|
setImageOpen(false);
|
|
|
};
|
|
|
|
|
|
+
|
|
|
+ //1
|
|
|
+ const chgPanel = () => {
|
|
|
+ new MiddlePanel().hideComponent("showHideDemo1");
|
|
|
+ }
|
|
|
return (
|
|
|
+
|
|
|
+
|
|
|
<div className={classes.root}>
|
|
|
<AppBar position="fixed" style={{ background: '#2196f3' }} className={
|
|
|
clsx(classes.appBar, {
|
|
|
@@ -254,7 +262,7 @@ export default function ButtonAppBar() {
|
|
|
<Divider />
|
|
|
<List>
|
|
|
{['相片', '共享', '相簿', '實用工具'].map((text, index) => (
|
|
|
- <ListItem button key={text}>
|
|
|
+ <ListItem button key={text} onClick={chgPanel}>
|
|
|
<ListItemIcon>{index == 0 ? < PhotoIcon /> : index == 1 ? < ShareIcon /> : index == 2 ? < PhotoAlbumIcon /> : < LibraryAddCheckIcon />}</ListItemIcon>
|
|
|
<ListItemText primary={text} />
|
|
|
</ListItem>
|
|
|
@@ -271,8 +279,8 @@ export default function ButtonAppBar() {
|
|
|
</List>
|
|
|
</Drawer>
|
|
|
<main className={classes.content}>
|
|
|
- <div className={classes.toolbar}/>
|
|
|
- <ImageList/>
|
|
|
+ <div className={classes.toolbar} />
|
|
|
+ <MiddlePanel/>
|
|
|
</main>
|
|
|
<Modal
|
|
|
aria-labelledby="transition-modal-title"
|