diff --git a/editor.planx.uk/src/@planx/components/FindProperty/Public/Autocomplete.tsx b/editor.planx.uk/src/@planx/components/FindProperty/Public/Autocomplete.tsx index 873f617383..a9438bb9de 100644 --- a/editor.planx.uk/src/@planx/components/FindProperty/Public/Autocomplete.tsx +++ b/editor.planx.uk/src/@planx/components/FindProperty/Public/Autocomplete.tsx @@ -10,6 +10,7 @@ import find from "lodash/find"; import { parse, toNormalised } from "postcode"; import React, { useEffect, useState } from "react"; import InputLabel from "ui/public/InputLabel"; +import { ErrorWrapperRoot } from "ui/shared/ErrorWrapper"; import Input from "ui/shared/Input"; import type { SiteAddress } from "../model"; @@ -22,7 +23,11 @@ interface Option extends SiteAddress { interface PickOSAddressProps { setAddress: React.Dispatch>; initialPostcode?: string; + showPostcodeError: boolean; + setShowPostcodeError: React.Dispatch>; initialSelectedAddress?: Option; + showAddressSelectError: boolean; + setShowAddressSelectError: React.Dispatch>; id?: string; description?: string; } @@ -55,7 +60,6 @@ export default function PickOSAddress(props: PickOSAddressProps): FCReturn { const [selectedOption, setSelectedOption] = useState