Skip to content

Commit

Permalink
Fixed the eslint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Jan 24, 2024
1 parent 97b4855 commit 517812f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dapp/src/theme/CurrencyIcon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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,
})

0 comments on commit 517812f

Please sign in to comment.