From dba5c26ad933a1f11fdfe7698653e90ebafbb011 Mon Sep 17 00:00:00 2001 From: Nada Date: Tue, 30 Jul 2024 12:08:47 +0400 Subject: [PATCH] fix: bundle size issue import changed to import only currencies section --- src/components/AppHeader/CurrencyIcon/CurrencyIcon.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AppHeader/CurrencyIcon/CurrencyIcon.tsx b/src/components/AppHeader/CurrencyIcon/CurrencyIcon.tsx index 4734f0b5..6d99a83e 100644 --- a/src/components/AppHeader/CurrencyIcon/CurrencyIcon.tsx +++ b/src/components/AppHeader/CurrencyIcon/CurrencyIcon.tsx @@ -12,7 +12,7 @@ const CurrencyIcon = ({ currency, isVirtual }: CurrencyIconProps) => { const currencyName = currency.charAt(0).toUpperCase() + currency.slice(1).toLowerCase(); const currencyIconName = isVirtual ? 'CurrencyDemoIcon' : `Currency${currencyName}Icon`; const getIconComponent = async () => { - const module = await import('@deriv/quill-icons'); + const module = await import('@deriv/quill-icons/Currencies'); /* eslint-disable @typescript-eslint/no-explicit-any */ const IconComponent = (module as any)[currencyIconName];