From 59bc39099e82f4ce026e0ebd916c96bdc40fc951 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 19 Sep 2018 18:52:29 +0200 Subject: browser init --- app/client/browser/browser.component.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 app/client/browser/browser.component.js (limited to 'app/client/browser/browser.component.js') diff --git a/app/client/browser/browser.component.js b/app/client/browser/browser.component.js new file mode 100644 index 0000000..7330171 --- /dev/null +++ b/app/client/browser/browser.component.js @@ -0,0 +1,27 @@ +import { h, Component } from 'preact' +import { bindActionCreators } from 'redux' +import { connect } from 'react-redux' +import { Route, Link } from 'react-router-dom' + +class Browser extends Component { + render(){ + const { app } = this.props + console.log(this.props) + return ( +
+

browser

+ {app.tool} +
+ ) + } +} + +const mapStateToProps = state => ({ + app: state.system.app, +}) + +const mapDispatchToProps = (dispatch, ownProps) => ({ + // actions: bindActionCreators(dashboardActions, dispatch), +}) + +export default connect(mapStateToProps, mapDispatchToProps)(Browser) -- cgit v1.2.3-70-g09d2