Remove DONE button

pull/1575/head
Rick Carlino 2019-11-15 14:58:44 -06:00
parent 232dccaf5d
commit 97bad3c217
3 changed files with 4 additions and 14 deletions

View File

@ -57,7 +57,6 @@
.crop-drag-info-image {
width: 100% !important;
background-color: $translucent;
}
.plant-catalog-image {

View File

@ -40,8 +40,7 @@ const AddPlantDescription = ({ svgIcon, children }: APDProps) =>
onDragStart={setDragIcon(svgIcon)} />
<b>{t("Drag and drop")}</b> {t("the icon onto the map or ")}
<b>{t("CLICK anywhere within the grid")}</b> {t(`to add the plant
to the map. You can add the plant as many times as you need to
before pressing DONE to finish.`)}
to the map. Alternatively, you can plant a grid using the form below.`)}
{children}
</div>;
@ -60,7 +59,7 @@ export class RawAddPlant extends React.Component<AddPlantProps, {}> {
render() {
const { cropSearchResults } = this.props;
const { crop, result, basePath, backgroundURL } =
const { result, backgroundURL } =
getCropHeaderProps({ cropSearchResults });
const panelName = "add-plant";
const descElem = <AddPlantDescription svgIcon={result.crop.svg_icon}>
@ -75,12 +74,7 @@ export class RawAddPlant extends React.Component<AddPlantProps, {}> {
panel={Panel.Plants}
title={result.crop.name}
style={{ background: backgroundURL }}
descriptionElement={descElem}>
<a className="right-button"
onClick={() => history.push(basePath + crop)}>
{t("Done")}
</a>
</DesignerPanelHeader>
descriptionElement={descElem} />
</DesignerPanel>;
}
}

View File

@ -14,10 +14,7 @@ import { t } from "../../../i18next_wrapper";
import { GridInput } from "./grid_inputs";
export class PlantGrid extends React.Component<PlantGridProps, PlantGridState> {
state: PlantGridState = {
...EMPTY_PLANT_GRID,
gridId: uuid()
};
state: PlantGridState = { ...EMPTY_PLANT_GRID, gridId: uuid() };
onchange = (key: PlantGridKey, val: number) => {
const grid = { ...this.state.grid, [key]: val };