From 35e5ea07716b9c47ca8be424e7d7114bef356d77 Mon Sep 17 00:00:00 2001 From: Sarthak Kumar Shailendra <69191344+sarthak-kumar-shailendra@users.noreply.github.com> Date: Fri, 11 Oct 2024 21:42:54 +0530 Subject: [PATCH] correcting the url to avoid error --- .../src/sections/phoneNumber/phoneNumber-form.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/i18nify-playground/src/sections/phoneNumber/phoneNumber-form.jsx b/packages/i18nify-playground/src/sections/phoneNumber/phoneNumber-form.jsx index 3bb071a9..38a3e4a2 100644 --- a/packages/i18nify-playground/src/sections/phoneNumber/phoneNumber-form.jsx +++ b/packages/i18nify-playground/src/sections/phoneNumber/phoneNumber-form.jsx @@ -19,7 +19,7 @@ import { localPhoneNumbersByDialCodeMap, } from './data/phoneNumber'; -import { getFlagOfCountry } from '@razorpay/i18nify-js'; +import { FLAG_4X3_BASE_PATH } from 'src/constants/phoneNumber'; const PhoneNumberForm = ({ inpValue, @@ -90,9 +90,9 @@ const PhoneNumberForm = ({ marginRight: 8, }} loading="lazy" - src={getFlagOfCountry(dialCodeCountryCodeMap[ + src={`${FLAG_4X3_BASE_PATH}/${dialCodeCountryCodeMap[ code - ][0])['4X3']} + ][0].toLocaleLowerCase()}.svg`} />