From 115e4acc6c09d8d74a3087383157522c3017c1c1 Mon Sep 17 00:00:00 2001 From: Mario Pesch Date: Mon, 21 Feb 2022 12:26:04 +0100 Subject: [PATCH] fix imageList --- src/components/Tutorial/Builder/Hardware.js | 18 +++++++++--------- src/components/Tutorial/Hardware.js | 20 ++++++++++---------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/components/Tutorial/Builder/Hardware.js b/src/components/Tutorial/Builder/Hardware.js index 817e5fe..b9e2a7b 100644 --- a/src/components/Tutorial/Builder/Hardware.js +++ b/src/components/Tutorial/Builder/Hardware.js @@ -12,19 +12,19 @@ import hardware from "../../../data/hardware.json"; import { withStyles } from "@material-ui/core/styles"; import withWidth, { isWidthDown } from "@material-ui/core/withWidth"; import ImageList from "@material-ui/core/ImageList"; -import ImageListTile from "@material-ui/core/ImageListItem"; -import ImageListTileBar from "@material-ui/core/ImageListItemBar"; +import ImageListItem from "@material-ui/core/ImageListItem"; +import ImageListItemBar from "@material-ui/core/ImageListItemBar"; import FormHelperText from "@material-ui/core/FormHelperText"; import FormLabel from "@material-ui/core/FormLabel"; import * as Blockly from "blockly"; const styles = (theme) => ({ - multiImageListTile: { + multiImageListItem: { background: theme.palette.primary.main, opacity: 0.9, height: "30px", }, - multiImageListTileTitle: { + multiImageListItemTitle: { color: theme.palette.text.primary, }, border: { @@ -104,7 +104,7 @@ class Requirements extends Component { ) : null} {hardware.map((picture, i) => ( - this.onChange(picture.id)} classes={{ @@ -122,18 +122,18 @@ class Requirements extends Component { height={100} /> - {picture.name} } /> - + ))} diff --git a/src/components/Tutorial/Hardware.js b/src/components/Tutorial/Hardware.js index e581e3b..4eb2416 100644 --- a/src/components/Tutorial/Hardware.js +++ b/src/components/Tutorial/Hardware.js @@ -10,8 +10,8 @@ import Link from "@material-ui/core/Link"; import Typography from "@material-ui/core/Typography"; import IconButton from "@material-ui/core/IconButton"; import ImageList from "@material-ui/core/ImageList"; -import ImageListTile from "@material-ui/core/ImageList"; -import ImageListTileBar from "@material-ui/core/ImageListItemBar"; +import ImageListItem from "@material-ui/core/ImageListItem"; +import ImageListItemBar from "@material-ui/core/ImageListItemBar"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faExpandAlt } from "@fortawesome/free-solid-svg-icons"; @@ -26,12 +26,12 @@ const styles = (theme) => ({ }, color: theme.palette.text.primary, }, - multiImageListTile: { + multiImageListItem: { background: theme.palette.primary.main, opacity: 0.9, height: "30px", }, - multiImageListTileTitle: { + multiImageListItemTitle: { color: theme.palette.text.primary, }, }); @@ -62,13 +62,13 @@ class Hardware extends Component {
{Blockly.Msg.tutorials_hardware_head} - + {this.props.picture.map((picture, i) => { var hardwareInfo = hardware.filter( (hardware) => hardware.id === picture )[0]; return ( - +
this.handleClickOpen(hardwareInfo)} />
- {hardwareInfo.name}
@@ -98,7 +98,7 @@ class Hardware extends Component { } /> - + ); })}