Add manifest.json, icons and install button, flatten client/src
This commit is contained in:
parent
a219e689c1
commit
474afda9c2
105 changed files with 338 additions and 283 deletions
17
client/js/containers/Route.js
Normal file
17
client/js/containers/Route.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
import { createStructuredSelector } from 'reselect';
|
||||
import connect from 'utils/connect';
|
||||
|
||||
const Route = ({ route, name, children }) => {
|
||||
if (route === name) {
|
||||
return children;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
const getRoute = state => state.router.route;
|
||||
|
||||
const mapState = createStructuredSelector({
|
||||
route: getRoute
|
||||
});
|
||||
|
||||
export default connect(mapState)(Route);
|
Loading…
Add table
Add a link
Reference in a new issue