@@ -1,8 +1,8 @@
|
|||||||
import React, { FC } from 'react';
|
import React, { FC, PropsWithChildren } from 'react';
|
||||||
|
|
||||||
import { Provider, createStore } from '../../store';
|
import { Provider, createStore } from '../../store';
|
||||||
|
|
||||||
const ReactFlowProvider: FC = ({ children }) => <Provider createStore={createStore}>{children}</Provider>;
|
const ReactFlowProvider: FC<PropsWithChildren<{}>> = ({ children }) => <Provider createStore={createStore}>{children}</Provider>;
|
||||||
|
|
||||||
ReactFlowProvider.displayName = 'ReactFlowProvider';
|
ReactFlowProvider.displayName = 'ReactFlowProvider';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user