refactor(wrapper): use PropsWithChildren

This commit is contained in:
moklick
2022-04-11 16:15:55 +02:00
parent 97c8316f8d
commit f56d9b8430
3 changed files with 39 additions and 422 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
import React, { FC } from 'react';
import React, { FC, PropsWithChildren } from 'react';
import { Provider, createStore, useStoreApi } from '../../store';
const Wrapper: FC = ({ children }) => {
const Wrapper: FC<PropsWithChildren<{}>> = ({ children }) => {
let isWrapped = true;
try {