[UNSTABLE] More feature flag removals

pull/1503/head
Rick Carlino 2019-10-10 12:43:44 -05:00
parent a460e6e0c0
commit 2792281043
2 changed files with 5 additions and 18 deletions

View File

@ -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() {

View File

@ -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}