added the fan picker stuff back in to the binSettings and componentForm
This commit is contained in:
parent
3475b0ff03
commit
9074120f74
2 changed files with 19 additions and 18 deletions
|
|
@ -30,6 +30,7 @@ import {
|
|||
extension,
|
||||
getMeasurements,
|
||||
hasDimensions,
|
||||
hasFan,
|
||||
isController,
|
||||
isMultiSensor,
|
||||
primaryMeasurement
|
||||
|
|
@ -45,6 +46,7 @@ import { makeStyles } from "@mui/styles";
|
|||
import { getDistanceUnit } from "utils";
|
||||
import { GrainOptions } from "grain";
|
||||
import CompModes from "component/ComponentMode.json";
|
||||
import FanPicker from "fans/fanPicker";
|
||||
|
||||
const useStyles = makeStyles((theme: Theme) => {
|
||||
return ({
|
||||
|
|
@ -874,8 +876,8 @@ export default function ComponentForm(props: Props) {
|
|||
disabled={!canEdit}
|
||||
/>
|
||||
{/* TODO-CS: Change this to have a parameter in the extensions that gets checked rather then checking for the component type */}
|
||||
{/*hasFan(component.type()) && (*/}
|
||||
{/*<FanPicker
|
||||
{hasFan(component.type()) && (
|
||||
<FanPicker
|
||||
fanID={component.settings.fanId}
|
||||
updateFan={(fanID: number) => {
|
||||
component.settings.fanId = fanID;
|
||||
|
|
@ -890,8 +892,8 @@ export default function ComponentForm(props: Props) {
|
|||
);
|
||||
}
|
||||
}}
|
||||
/> */}
|
||||
{/* )} */}
|
||||
/>
|
||||
)}
|
||||
{component.settings.type === quack.ComponentType.COMPONENT_TYPE_GRAIN_CABLE &&
|
||||
grainSelect()}
|
||||
{component.settings.type === quack.ComponentType.COMPONENT_TYPE_GRAIN_CABLE && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue