From bb285192a2dc2fc00dc6919dfb23b24ec09a0f1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez=20Jim=C3=A9nez?= Date: Sat, 26 Feb 2022 16:44:24 +0100 Subject: [PATCH] chore: undo handle `scale`, should be done from outside --- packages/utils/src/loader/custom.ts | 1 - packages/utils/src/loader/modern.ts | 1 - packages/utils/src/loader/utils.ts | 6 +----- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/utils/src/loader/custom.ts b/packages/utils/src/loader/custom.ts index 10c820f..6037e8a 100644 --- a/packages/utils/src/loader/custom.ts +++ b/packages/utils/src/loader/custom.ts @@ -41,7 +41,6 @@ export async function getCustomIcon( collection, icon, additionalProps, - options?.scale ?? 1.2, undefined, iconCustomizer, ); diff --git a/packages/utils/src/loader/modern.ts b/packages/utils/src/loader/modern.ts index 7913d27..083541b 100644 --- a/packages/utils/src/loader/modern.ts +++ b/packages/utils/src/loader/modern.ts @@ -37,7 +37,6 @@ export async function searchForIcon( collection, id, additionalProps, - options?.scale ?? 1.2, () => attributes, iconCustomizer ); diff --git a/packages/utils/src/loader/utils.ts b/packages/utils/src/loader/utils.ts index 21dbbe4..b50cfb3 100644 --- a/packages/utils/src/loader/utils.ts +++ b/packages/utils/src/loader/utils.ts @@ -8,14 +8,10 @@ export async function mergeIconProps( collection: string, icon: string, additionalProps: Record, - scale: number, propsProvider?: () => Awaitable>, iconCustomizer?: IconCustomizer, ): Promise { - const props: Record = (await propsProvider?.()) ?? { - height: `${scale ?? 1}em`, - width: `${scale ?? 1}em`, - }; + const props: Record = (await propsProvider?.()) ?? {}; await iconCustomizer?.(collection, icon, props); Object.keys(additionalProps).forEach((p) => { const v = additionalProps[p];