mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
refactor: convert last jsx file to tsx (#58710)
This commit is contained in:
committed by
GitHub
parent
86e7b2c9bb
commit
3c0d2c1c6a
@@ -1,10 +1,10 @@
|
||||
import React from 'react';
|
||||
import React, { type ReactElement } from 'react';
|
||||
import { render as rtlRender } from '@testing-library/react';
|
||||
import { Provider } from 'react-redux';
|
||||
import type { Store } from 'redux';
|
||||
|
||||
function render(ui, store) {
|
||||
// eslint-disable-next-line react/prop-types
|
||||
function Wrapper({ children }) {
|
||||
function render(ui: ReactElement, store: Store) {
|
||||
function Wrapper({ children }: { children: ReactElement }) {
|
||||
return <Provider store={store}>{children}</Provider>;
|
||||
}
|
||||
return rtlRender(ui, { wrapper: Wrapper });
|
||||
Reference in New Issue
Block a user