From 9dd49436e325e1e0a6c4708da6f85d83ebb3c06d Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Mon, 16 Feb 2026 10:06:14 +0330 Subject: [PATCH] Add state and city --- .../address/new/components/AddressForm.tsx | 20 +++++++++++++++++++ .../address/new/hooks/useAddressForm.ts | 8 ++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/app/[name]/(Profile)/profile/address/new/components/AddressForm.tsx b/src/app/[name]/(Profile)/profile/address/new/components/AddressForm.tsx index 966de8c..3e2c6a0 100644 --- a/src/app/[name]/(Profile)/profile/address/new/components/AddressForm.tsx +++ b/src/app/[name]/(Profile)/profile/address/new/components/AddressForm.tsx @@ -9,6 +9,8 @@ interface AddressFormProps { addressDetails: string; phone: string; postalCode: string; + city: string; + province: string; isDefault: boolean; }; selectedAddress: NominatimReverseGeocodingResponse | null; @@ -50,6 +52,24 @@ export const AddressForm = ({ onChange={(e) => onFormDataChange({ addressDetails: e.target.value })} inputClassName='text-xs!' /> + onFormDataChange({ province: e.target.value })} + inputClassName='text-xs!' + /> + onFormDataChange({ city: e.target.value })} + inputClassName='text-xs!' + />