Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
majakomel committed Feb 14, 2024
1 parent 55805a7 commit b2ba1cb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/__test__/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import React, { JSXElementConstructor, ReactElement } from 'react'
import { render } from '@testing-library/react'
import React from 'react'
import { ThemeProvider } from 'styled-components'
import theme from '../theme'

interface IRenderWithWrapper {
component: ReactElement
component: React.ReactNode
options?: object
}

interface IWrapper {
children: ReactElement
children: React.ReactNode
}

function renderWithWrapper({ component, options }: IRenderWithWrapper) {
Expand Down
16 changes: 8 additions & 8 deletions src/components/Box.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
// @ts-nocheck
import css, { get } from '@styled-system/css'
import shouldForwardProp from '@styled-system/should-forward-prop'
import { styled } from 'styled-components'
import {
color,
compose,
space,
flexbox,
layout,
space,
typography,
color,
flexbox,
} from 'styled-system'
import { styled } from 'styled-components'
import css, { get } from '@styled-system/css'
import shouldForwardProp from '@styled-system/should-forward-prop'
import { BoxProps } from 'types'

const sx = (props: any) => css(props?.sx)(props?.theme)
const base = (props: any) => css(props.__css)(props.theme)
const base = (props: any) => css(props?.__css)(props?.theme)
const variant = ({ theme, variant, tx = 'variants' }: any) => {
let styles = {}
if (Array.isArray(variant)) {
Expand Down

0 comments on commit b2ba1cb

Please sign in to comment.