feat(guide): Import guide in to the client app
This commit is contained in:
@ -1,16 +1,19 @@
|
||||
import React from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Provider } from 'react-redux';
|
||||
|
||||
import { createStore } from './src/redux/createStore';
|
||||
import AppMountNotifier from './src/components/AppMountNotifier';
|
||||
import GuideNavigationContextProvider from './src/contexts/GuideNavigationContext';
|
||||
|
||||
const store = createStore();
|
||||
|
||||
export const wrapRootElement = ({ element }) => {
|
||||
return (
|
||||
<Provider store={store}>
|
||||
<AppMountNotifier render={() => element} />
|
||||
<GuideNavigationContextProvider>
|
||||
<AppMountNotifier render={() => element} />
|
||||
</GuideNavigationContextProvider>
|
||||
</Provider>
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user