Skip to content

Commit

Permalink
Fix/unscoped react (#41)
Browse files Browse the repository at this point in the history
* fix: migrate to `import * as React from 'react'`

* chore: use `import * as React from 'react'`

* fix: add missing import in Day module
  • Loading branch information
tomchentw authored May 25, 2022
1 parent df5d0d5 commit 7d10841
Show file tree
Hide file tree
Showing 7 changed files with 182 additions and 173 deletions.
6 changes: 3 additions & 3 deletions .jest/with-theme.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as React from 'react'
import { render, RenderOptions } from '@testing-library/react'
import { ChakraProvider } from '@chakra-ui/react'
import { theme } from '../src/theme'
import { PropsWithChildren, ReactElement } from 'react'

const Providers = ({ children }: PropsWithChildren<unknown>) => <ChakraProvider theme={theme}>{children}</ChakraProvider>
const Providers = ({ children }: React.PropsWithChildren<unknown>) => <ChakraProvider theme={theme}>{children}</ChakraProvider>

const renderer = (ui: ReactElement, options?: RenderOptions) => {
const renderer = (ui: React.ReactElement, options?: RenderOptions) => {
return render(ui, { wrapper: Providers, ...options })
}

Expand Down
Loading

0 comments on commit 7d10841

Please sign in to comment.