redesigned white labeling code

This commit is contained in:
Carter 2026-05-21 11:03:34 -06:00
parent a84c09a5c8
commit 81c2b687fa
9 changed files with 423 additions and 418 deletions

View file

@ -7,7 +7,7 @@ import { CheckCircleOutline } from "@mui/icons-material";
import { green } from "@mui/material/colors";
import Tour, { TourStep } from "common/Tour";
import Emoji from "react-emoji-render";
import { getWhitelabel, IsAdaptiveAgriculture } from "services/whiteLabel";
import { getWhitelabel, getFeatures } from "services/whiteLabel";
import { pond } from "protobuf-ts/pond";
import { User } from "models";
// import { color } from "framer-motion";
@ -154,7 +154,7 @@ export default function SignupCallback () {
<MenuItem value={pond.DistanceUnit.DISTANCE_UNIT_FEET}>Feet (ft)</MenuItem>
</TextField>
</Grid2>
{IsAdaptiveAgriculture() && (
{getFeatures().grainUnit && (
<Grid2 size={{ xs: 12 }}>
<TextField
select
@ -294,7 +294,7 @@ export default function SignupCallback () {
placement: "right"
})
//tasks step
if (IsAdaptiveAgriculture()) {
if (getFeatures().visualFarm) {
steps.push({
title: "Visual Farm",
content: (