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 9dc263a464..f6e53b8290 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 ErrorWrapper from "ui/shared/ErrorWrapper"; import Input from "ui/shared/Input"; import type { SiteAddress } from "../model"; @@ -25,6 +26,12 @@ interface PickOSAddressProps { initialSelectedAddress?: Option; id?: string; description?: string; + showPostcodeError: boolean; + setShowPostcodeError: React.Dispatch>; + addressAutocompleteError?: string; + setAddressAutocompleteError: React.Dispatch< + React.SetStateAction + >; } const AutocompleteWrapper = styled(Box)(({ theme }) => ({ @@ -55,7 +62,6 @@ export default function PickOSAddress(props: PickOSAddressProps): FCReturn { const [selectedOption, setSelectedOption] = useState