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
|
|
@ -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
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue