From 9dd46a859b285410c54d67dec5eb9c1125871397 Mon Sep 17 00:00:00 2001 From: Ian Jones Date: Thu, 10 Oct 2024 12:01:59 +0100 Subject: [PATCH] add input labels --- .../src/@planx/components/Result/Editor.tsx | 45 ++++++++++--------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/editor.planx.uk/src/@planx/components/Result/Editor.tsx b/editor.planx.uk/src/@planx/components/Result/Editor.tsx index c8c2e32030..b53b379d0a 100644 --- a/editor.planx.uk/src/@planx/components/Result/Editor.tsx +++ b/editor.planx.uk/src/@planx/components/Result/Editor.tsx @@ -7,6 +7,7 @@ import groupBy from "lodash/groupBy"; import React from "react"; import ModalSection from "ui/editor/ModalSection"; import ModalSectionContent from "ui/editor/ModalSectionContent"; +import InputLabel from "ui/public/InputLabel"; import Input from "ui/shared/Input"; import InputRow from "ui/shared/InputRow"; @@ -30,33 +31,35 @@ const FlagEditor: React.FC<{ const showEditedIndicator = Boolean(existingOverrides); return ( - + - + {flag.text} {showEditedIndicator && "*"} - - - props.onChange({ ...existingOverrides, heading: ev.target.value }) - } - /> - - props.onChange({ - ...existingOverrides, - description: ev.target.value, - }) - } - /> + + + + props.onChange({ ...existingOverrides, heading: ev.target.value }) + } + /> + + + + props.onChange({ + ...existingOverrides, + description: ev.target.value, + }) + } + /> + );