added the fan picker stuff back in to the binSettings and componentForm

This commit is contained in:
csawatzky 2025-04-08 15:27:02 -06:00
parent 3475b0ff03
commit 9074120f74
2 changed files with 19 additions and 18 deletions

View file

@ -47,7 +47,7 @@ import {
RadiansToDegrees,
TriangleOppositeLength
} from "common/TrigFunctions";
// import FanPicker from "fans/fanPicker";
import FanPicker from "fans/fanPicker";
import { GrainOptions, ToGrainOption } from "grain";
import GrainDescriber from "grain/GrainDescriber";
import GrainTransaction from "grain/GrainTransaction";
@ -1109,19 +1109,18 @@ export default function BinSettings(props: Props) {
const fanPicker = () => {
return (
// <FanPicker
// updateFan={(fanId: number) => {
// if (fanId !== undefined) {
// //set the fan id in the bin settings form
// form.fanId = fanId;
// //remove the old fan from the bin
// form.fan = null;
// }
// }}
// fanID={form.fanId}
// useCardView
// />
null
<FanPicker
updateFan={(fanId: number) => {
if (fanId !== undefined) {
//set the fan id in the bin settings form
form.fanId = fanId;
//remove the old fan from the bin
form.fan = null;
}
}}
fanID={form.fanId}
useCardView
/>
);
};