From 0591bf72a5d0836bd1bf29f30c99fc614b7a398a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 13 Jul 2022 18:10:16 -0500 Subject: [PATCH] PhoneInput: remove unnecessary handleCountryChange function --- app/soapbox/components/ui/phone-input/phone-input.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/soapbox/components/ui/phone-input/phone-input.tsx b/app/soapbox/components/ui/phone-input/phone-input.tsx index ec8584581..d41c49414 100644 --- a/app/soapbox/components/ui/phone-input/phone-input.tsx +++ b/app/soapbox/components/ui/phone-input/phone-input.tsx @@ -24,10 +24,6 @@ const PhoneInput: React.FC = (props) => { const [countryCode, setCountryCode] = useState(defaultCountryCode); const [nationalNumber, setNationalNumber] = useState(''); - const handleCountryChange = (code: CountryCode) => { - setCountryCode(code); - }; - const handleChange: React.ChangeEventHandler = ({ target }) => { // HACK: AsYouType is not meant to be used this way. But it works! const asYouType = new AsYouType({ defaultCallingCode: countryCode }); @@ -64,7 +60,7 @@ const PhoneInput: React.FC = (props) => {