From b44738e6277a9ed2399f9004ecc4e606103c7486 Mon Sep 17 00:00:00 2001 From: Mike Simpson Date: Thu, 29 Jun 2023 14:51:31 +0100 Subject: [PATCH] Change to logical/boolean questions --- .../data-containers/street-context.tsx | 12 ++++-------- app/src/frontend/config/data-fields-config.ts | 18 +++--------------- migrations/042.ui_revamp_tweaks.refactor.sql | 7 +++++++ 3 files changed, 14 insertions(+), 23 deletions(-) create mode 100644 migrations/042.ui_revamp_tweaks.refactor.sql diff --git a/app/src/frontend/building/data-containers/street-context.tsx b/app/src/frontend/building/data-containers/street-context.tsx index 33b571d9..351c4ddb 100644 --- a/app/src/frontend/building/data-containers/street-context.tsx +++ b/app/src/frontend/building/data-containers/street-context.tsx @@ -8,6 +8,7 @@ import { DataEntryGroup } from '../data-components/data-entry-group'; import { MultiDataEntry } from '../data-components/multi-data-entry/multi-data-entry'; import SelectDataEntry from '../data-components/select-data-entry'; import Verification from '../data-components/verification'; +import { LogicalDataEntry } from '../data-components/logical-data-entry/logical-data-entry'; /** * Street Context view/edit section @@ -15,11 +16,10 @@ import Verification from '../data-components/verification'; const StreetContextView: React.FunctionComponent = (props) => ( - = (props) => user_verified_as={props.user_verified.context_front_garden} verified_count={props.building.verified.context_front_garden} /> - = (props) => copy={props.copy} onChange={props.onChange} tooltip={dataFields.context_back_garden.tooltip} - //placeholder={dataFields.context_back_garden.example} - options={dataFields.context_back_garden.items} /> = (props) => user_verified_as={props.user_verified.context_back_garden} verified_count={props.building.verified.context_back_garden} /> - = (props) => copy={props.copy} onChange={props.onChange} tooltip={dataFields.context_flats_garden.tooltip} - //placeholder={dataFields.context_flats_garden.example} - options={dataFields.context_flats_garden.items} />