From b2ba1cb90366ebf24e6f290a0a90fee9c95309b8 Mon Sep 17 00:00:00 2001 From: majakomel Date: Wed, 14 Feb 2024 17:46:43 +0100 Subject: [PATCH] Fix tests --- src/__test__/index.tsx | 6 +++--- src/components/Box.tsx | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/__test__/index.tsx b/src/__test__/index.tsx index a7bf29d3..0e5e613f 100644 --- a/src/__test__/index.tsx +++ b/src/__test__/index.tsx @@ -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) { diff --git a/src/components/Box.tsx b/src/components/Box.tsx index 0d4800e0..add38408 100644 --- a/src/components/Box.tsx +++ b/src/components/Box.tsx @@ -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)) {