Skip to content

Commit

Permalink
Merge pull request #225 from nada-deriv/nada/bundle-fix
Browse files Browse the repository at this point in the history
fix: bundle size issue import changed to import only currencies section
  • Loading branch information
farrah-deriv authored Jul 30, 2024
2 parents a94467d + dba5c26 commit 56ffb4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AppHeader/CurrencyIcon/CurrencyIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 56ffb4e

Please sign in to comment.