got rid of material-ui references and fixed fan icon import
This commit is contained in:
parent
c84f6194fa
commit
65eeb9e8b4
20 changed files with 163 additions and 94 deletions
|
|
@ -28,16 +28,12 @@ import {
|
|||
import BinActions from "bin/BinActions";
|
||||
import BinHistory from "bin/BinHistory";
|
||||
import { useComponentAPI, useMobile } from "hooks";
|
||||
// import { useHistory } from "react-router";
|
||||
import { Bin as IBin, binScope } from "models";
|
||||
// import { MatchParams } from "navigation/Routes";
|
||||
import { pond, quack } from "protobuf-ts/pond";
|
||||
import { useBinAPI, useGlobalState } from "providers";
|
||||
import React, { useCallback, useEffect, useRef, useState } from "react";
|
||||
// import { useRouteMatch } from "react-router";
|
||||
import PageContainer from "./PageContainer";
|
||||
import { Component, Device, Interaction } from "models";
|
||||
// import { ToggleButton, ToggleButtonGroup } from "@material-ui/lab";
|
||||
import BinLightIcon from "assets/products/bindapt/binLight.png";
|
||||
import BinDarkIcon from "assets/products/bindapt/binDark.png";
|
||||
import NotesIcon from "@mui/icons-material/Notes";
|
||||
|
|
@ -214,7 +210,7 @@ export default function Bin(props: Props) {
|
|||
const [binPresets, setBinPresets] = useState<DevicePreset[]>([]);
|
||||
const [missedCableReadings, setMissedCableReadings] = useState(0);
|
||||
|
||||
const handleChange = (event: React.ChangeEvent<{}>, newValue: number) => {
|
||||
const handleChange = (_event: React.ChangeEvent<{}>, newValue: number) => {
|
||||
setValue(newValue);
|
||||
};
|
||||
|
||||
|
|
@ -482,7 +478,7 @@ export default function Bin(props: Props) {
|
|||
// return true;
|
||||
// };
|
||||
|
||||
const refresh = (showSnack?: boolean) => {
|
||||
const refresh = (_showSnack?: boolean) => {
|
||||
// binAPI.getBin(bin.key()).then(resp => {
|
||||
// let bin = IBin.any(resp.data);
|
||||
// setBin(bin);
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@ import BinUtilizationChart from "charts/BinUtilizationChart";
|
|||
import GrainDescriber, { grainName } from "grain/GrainDescriber";
|
||||
// import GrainBagList from "grainBag/grainBagList";
|
||||
// import GrainBagSettings from "grainBag/grainBagSettings";
|
||||
// import { ToggleButton, ToggleButtonGroup } from "@material-ui/lab";
|
||||
import { useMobile, useWidth } from "hooks";
|
||||
import { Dictionary } from "lodash";
|
||||
// import { Bin, Interaction, BinYard as BinYardModel } from "models";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue