From 517812fd7b7e287033d84ab34c15c83fde0eba8e Mon Sep 17 00:00:00 2001 From: Karolina Kosiorowska Date: Wed, 24 Jan 2024 10:56:22 +0100 Subject: [PATCH] Fixed the eslint issue --- dapp/src/theme/CurrencyIcon.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dapp/src/theme/CurrencyIcon.ts b/dapp/src/theme/CurrencyIcon.ts index 50d4e0be9..1b6dbd355 100644 --- a/dapp/src/theme/CurrencyIcon.ts +++ b/dapp/src/theme/CurrencyIcon.ts @@ -2,8 +2,7 @@ import { createMultiStyleConfigHelpers, defineStyle } from "@chakra-ui/react" const PARTS = ["container", "symbol"] -const { defineMultiStyleConfig, definePartsStyle } = - createMultiStyleConfigHelpers(PARTS) +const multiStyleConfig = createMultiStyleConfigHelpers(PARTS) const baseStyleContainer = defineStyle({ display: "flex", @@ -17,9 +16,11 @@ const baseStyleSymbol = defineStyle({ lineHeight: "sm", }) -const baseStyle = definePartsStyle({ +const baseStyle = multiStyleConfig.definePartsStyle({ container: baseStyleContainer, symbol: baseStyleSymbol, }) -export const currencyIconTheme = defineMultiStyleConfig({ baseStyle }) +export const currencyIconTheme = multiStyleConfig.defineMultiStyleConfig({ + baseStyle, +})