diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Flow/components/Checklist.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Flow/components/Checklist.tsx index b56db2325c..54742247a9 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Flow/components/Checklist.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Flow/components/Checklist.tsx @@ -1,3 +1,4 @@ +import Help from "@mui/icons-material/Help"; import Box from "@mui/material/Box"; import { ComponentType as TYPES, @@ -25,10 +26,11 @@ type Props = { } & NodeTags; const Checklist: React.FC = React.memo((props) => { - const [isClone, childNodes, copyNode] = useStore((state) => [ + const [isClone, childNodes, copyNode, showHelpText] = useStore((state) => [ state.isClone, state.childNodesOf(props.id), state.copyNode, + state.showHelpText, ]); const parent = getParentId(props.parent); @@ -76,6 +78,9 @@ const Checklist: React.FC = React.memo((props) => { const Icon = ICONS[props.type]; + const hasHelpText = + props.data.policyRef || props.data.info || props.data.howMeasured; + return ( <>