imported in the field settings and actions stuff for drawing fields and the field drawer

This commit is contained in:
csawatzky 2025-03-27 15:48:00 -06:00
parent 6755764c75
commit a8e7ae1041
5 changed files with 487 additions and 13 deletions

View file

@ -23,7 +23,7 @@ import { pond } from "protobuf-ts/pond";
import { useMobile } from "hooks";
import { useGlobalState, /*useHarvestPlanAPI,*/ useUserAPI } from "providers";
import { makeStyles } from "@mui/styles";
//import FieldActions from "field/FieldActions";
import FieldActions from "field/FieldActions";
interface TabPanelProps {
children?: React.ReactNode;
@ -311,14 +311,14 @@ export default function FieldDrawer(props: Props) {
}
: undefined
}
// objectActions={
// field.settings.fieldGeoData &&
// field.settings.fieldGeoData.origin === pond.DataOrigin.DATA_ORIGIN_ADAPTIVE ? (
// <FieldActions field={field} permissions={permissions} refreshCallback={() => {}} />
// ) : (
// undefined
// )
// }
objectActions={
field.settings.fieldGeoData &&
field.settings.fieldGeoData.origin === pond.DataOrigin.DATA_ORIGIN_ADAPTIVE ? (
<FieldActions field={field} permissions={permissions} refreshCallback={() => {}} />
) : (
undefined
)
}
/>
{noteDrawer()}
</React.Fragment>