Skip to content

Commit

Permalink
Merge pull request #470 from lidofinance/feature/fix-default-is-not-a…
Browse files Browse the repository at this point in the history
…-function-in-styled-systemshould-forward

fix: import default interop in styled-system
  • Loading branch information
hexnickk4997 authored Dec 18, 2023
2 parents aa65aa4 + f5de8ac commit ce1c8d2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/styled-system/withStyledSystem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ import styled, {
StyledComponentInnerAttrs,
DefaultTheme,
} from '../utils/styled-components-wrapper.js'
import shouldForwardProp from '@styled-system/should-forward-prop'

// The `@styled-system/should-forward-prop` has issues with ESM modules:
import _shouldForwardProp from '@styled-system/should-forward-prop'
// @ts-expect-error Property 'default' does not exist on type 'genericShouldForwardProp'
const shouldForwardProp = _shouldForwardProp.default || _shouldForwardProp

import {
compose,
space,
Expand Down

0 comments on commit ce1c8d2

Please sign in to comment.