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

@ -15,7 +15,6 @@ import {
Typography
} from "@mui/material";
import { Settings } from "@mui/icons-material";
// import { ToggleButton, ToggleButtonGroup } from "@material-ui/lab";
import { useInteractionsAPI, usePrevious, useSnackbar } from "hooks";
import { cloneDeep } from "lodash";
import { Component, Device, Interaction } from "models";
@ -156,7 +155,7 @@ export default function InteractionsOverview(props: Props) {
step={measurement.step()}
track={false}
value={measurement.toDisplay(condition.value ? condition.value : 0)}
onChange={(event, value) =>
onChange={(_event, value) =>
updateConditionValue(source, interactionIndex, conditionIndex, value)
}
/>
@ -202,14 +201,14 @@ export default function InteractionsOverview(props: Props) {
) => {
interactionsAPI
.updateInteraction(Number(deviceID), settings)
.then((response: any) => {
.then((_response: any) => {
let updatedDirtyInteractions = cloneDeep(dirtyInteractions);
updatedDirtyInteractions.set(index, false);
setDirtyInteractions(updatedDirtyInteractions);
success("Successfully updated the interaction for " + component.name());
refreshCallback();
})
.catch((err: any) => {
.catch((_err: any) => {
error("Error occurred while updating the interaction for " + component.name());
});
};