mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
14 lines
419 B
TypeScript
14 lines
419 B
TypeScript
import React from 'react';
|
|
import { Provider } from 'react-redux';
|
|
import { MockStoreEnhanced } from 'redux-mock-store';
|
|
|
|
import { RootState } from '../ui/redux/modules';
|
|
|
|
export const withReduxStore = (store: MockStoreEnhanced<RootState, {}>) =>
|
|
class ReduxWrapper extends React.Component {
|
|
render() {
|
|
const { children } = this.props;
|
|
return <Provider store={store}>{children}</Provider>;
|
|
}
|
|
};
|