From b6c0181b3e871c3e34f4b366fcce1c3391731ad8 Mon Sep 17 00:00:00 2001 From: uwap Date: Tue, 19 Jun 2018 10:47:14 +0200 Subject: [PATCH] fix broken imports --- config/rzl.js | 6 +++--- package.json | 2 +- src/components/UiItemList/UiItem.js | 15 +++++++-------- src/components/UiItemList/index.js | 6 ++---- src/index.jsx | 2 +- yarn.lock | 8 ++++---- 6 files changed, 18 insertions(+), 21 deletions(-) diff --git a/config/rzl.js b/config/rzl.js index b9a8e7b..d759582 100644 --- a/config/rzl.js +++ b/config/rzl.js @@ -344,7 +344,7 @@ const config : Config = { position: [350, 650], iconColor: ({onkyo_connection, onkyo_power}) => onkyo_connection != "connected" ? hex("#888888") : (onkyo_power == "on" ? hex("#00FF00") : hex("#000000")), - icon: "volume-high", + icon: "audio-video", ui: [ { type: "toggle", @@ -648,8 +648,8 @@ const config : Config = { }, kitchen_sink_light: { name: "Licht Spüle", - position: [300, 348], - icon: "ceiling-light", + position: [300, 345], + icon: "wall-sconce-flat", ui: [ { type: "toggle", diff --git a/package.json b/package.json index ebeb800..46733ca 100644 --- a/package.json +++ b/package.json @@ -14,10 +14,10 @@ "dependencies": { "@material-ui/core": "^1.2.1", "@material-ui/lab": "^1.0.0-alpha.5", + "@mdi/font": "^2.0.46", "babel-preset-env": "^1.6.0", "leaflet": "^1.3.1", "lodash-es": "^4.17.4", - "mdi": "^2.0.46", "mqtt": "^2.14.0", "react": "^16.0.0", "react-dom": "^16.0.0", diff --git a/src/components/UiItemList/UiItem.js b/src/components/UiItemList/UiItem.js index 8a39b40..3821c18 100644 --- a/src/components/UiItemList/UiItem.js +++ b/src/components/UiItemList/UiItem.js @@ -2,16 +2,15 @@ import React from "react"; import keys from "lodash/keys"; import map from "lodash/map"; -import { - ListItemSecondaryAction, - ListItemText, - ListSubheader -} from "@material-ui/core/List"; +import ListItemSecondaryAction from "@material-ui/core/ListItemSecondaryAction"; +import ListItemText from "@material-ui/core/ListItemText"; +import ListSubheader from "@material-ui/core/ListSubheader"; import Switch from "@material-ui/core/Switch"; -import Input, { InputLabel } from "@material-ui/core/Input"; +import Input from "@material-ui/core/Input"; +import InputLabel from "@material-ui/core/InputLabel"; import FormControl from "@material-ui/core/FormControl"; import Select from "@material-ui/core/Select"; -import { MenuItem } from "@material-ui/core/Menu"; +import MenuItem from "@material-ui/core/MenuItem"; import Button from "@material-ui/core/Button"; import LinearProgress from "@material-ui/core/LinearProgress"; import SliderComponent from "@material-ui/lab/Slider"; @@ -194,7 +193,7 @@ export class Slider extends UiControl { render() { return [ - , + ,