fix: remove duplicate component instance
This commit is contained in:
@@ -17,6 +17,7 @@ import {
|
||||
import { type Phone } from '../../types/settingsType';
|
||||
import { useToast } from '@rkheftan/harmony-ui';
|
||||
import { useProfile } from '../../hooks/useProfile';
|
||||
import type { CountryCode } from '@/types/commonTypes';
|
||||
|
||||
export function PhoneNumber() {
|
||||
const { t, i18n } = useTranslation('setting');
|
||||
@@ -29,7 +30,7 @@ export function PhoneNumber() {
|
||||
);
|
||||
const [isVerified, setIsVerified] = useState(false);
|
||||
const [phones, setPhones] = useState<Phone[]>([]);
|
||||
const [countryCode, setCountryCode] = useState('+98');
|
||||
const [countryCode, setCountryCode] = useState<CountryCode>('+98');
|
||||
const [phoneNumberError, setPhoneNumberError] = useState<string>();
|
||||
const [verificationCodeError, setVerificationCodeError] = useState<string>();
|
||||
const [phoneNumberTouched, setPhoneNumberTouched] = useState<boolean>(false);
|
||||
|
||||
Reference in New Issue
Block a user