got rid of material-ui references and fixed fan icon import

This commit is contained in:
Carter 2025-03-18 11:40:16 -06:00
parent c84f6194fa
commit 65eeb9e8b4
20 changed files with 163 additions and 94 deletions

View file

@ -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);