redux setup

This commit is contained in:
Sean Macfarlane
2020-03-11 11:28:29 -04:00
parent 0c81d47cb2
commit 63b392d73d
47 changed files with 1908 additions and 20 deletions

View File

@@ -0,0 +1,22 @@
import React from 'react';
import T from 'prop-types';
import { Route } from 'react-router-dom';
import MasterLayout from 'containers/MasterLayout';
const RouteWithLayout = ({ component: Component, ...rest }) => (
<Route
{...rest}
render={props => (
<MasterLayout>
<Component {...props} />
</MasterLayout>
)}
/>
);
RouteWithLayout.propTypes = {
component: T.func.isRequired,
};
export default RouteWithLayout;