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 {
}
/>
-
+
);
})}