[UNSTABLE] More feature flag removals
parent
a460e6e0c0
commit
2792281043
|
@ -13,7 +13,6 @@ import {
|
|||
} from "./designer_panel";
|
||||
import { t } from "../../i18next_wrapper";
|
||||
import { createGroup } from "../point_groups/actions";
|
||||
import { DevSettings } from "../../account/dev/dev_support";
|
||||
|
||||
export function mapStateToProps(props: Everything) {
|
||||
return {
|
||||
|
@ -76,11 +75,6 @@ export class RawSelectPlants extends React.Component<SelectPlantsProps, {}> {
|
|||
}))}>
|
||||
{t("Create group")}
|
||||
</button>
|
||||
{DevSettings.futureFeaturesEnabled() &&
|
||||
<button className="fb-button green"
|
||||
onClick={() => { throw new Error("WIP"); }}>
|
||||
{t("Create garden")}
|
||||
</button>}
|
||||
</div>;
|
||||
|
||||
render() {
|
||||
|
|
|
@ -13,9 +13,9 @@ import { closeSavedGarden } from "./actions";
|
|||
import { TaggedSavedGarden } from "farmbot";
|
||||
import { Content } from "../../constants";
|
||||
import {
|
||||
DesignerPanel, DesignerPanelContent, DesignerPanelHeader
|
||||
DesignerPanel,
|
||||
DesignerPanelContent
|
||||
} from "../plants/designer_panel";
|
||||
import { DevSettings } from "../../account/dev/dev_support";
|
||||
import { DesignerNavTabs } from "../panel_header";
|
||||
import { t } from "../../i18next_wrapper";
|
||||
import { EmptyStateWrapper, EmptyStateGraphic } from "../../ui/empty_state_wrapper";
|
||||
|
@ -40,18 +40,11 @@ export class RawSavedGardens extends React.Component<SavedGardensProps, {}> {
|
|||
}
|
||||
|
||||
render() {
|
||||
const alt = DevSettings.futureFeaturesEnabled();
|
||||
return <DesignerPanel panelName={"saved-garden"} panelColor={"green"}>
|
||||
{alt ? <DesignerNavTabs /> :
|
||||
<DesignerPanelHeader
|
||||
panelName={"saved-garden"}
|
||||
panelColor={"green"}
|
||||
title={t("Saved Gardens")}
|
||||
description={Content.SAVED_GARDENS}
|
||||
backTo={"/app/designer/plants"} />}
|
||||
<DesignerNavTabs />
|
||||
<DesignerPanelContent panelName={"saved-garden"}
|
||||
className={`${alt ? "with-nav" : ""}`}>
|
||||
{alt && <p>{t(Content.SAVED_GARDENS)}</p>}
|
||||
className={"with-nav"}>
|
||||
<p>{t(Content.SAVED_GARDENS)}</p>
|
||||
<GardenSnapshot
|
||||
currentSavedGarden={this.currentSavedGarden}
|
||||
plantTemplates={this.props.plantTemplates}
|
||||
|
|
Loading…
Reference in New Issue