summaryrefslogtreecommitdiff
path: root/frontend/views/graph/components/graph.editor.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-06-02 20:25:23 +0200
committerJules Laplace <julescarbon@gmail.com>2020-06-02 20:25:23 +0200
commit04f7efe6c05153cbd1613e7b0c78b3b6478ae39b (patch)
treee181c4415a271a60e505fc536219eb5e72b6f6fb /frontend/views/graph/components/graph.editor.js
parentf6d7fcbb50ef57f1f7d7ca8cacd711ffd576e600 (diff)
new page form
Diffstat (limited to 'frontend/views/graph/components/graph.editor.js')
-rw-r--r--frontend/views/graph/components/graph.editor.js35
1 files changed, 35 insertions, 0 deletions
diff --git a/frontend/views/graph/components/graph.editor.js b/frontend/views/graph/components/graph.editor.js
new file mode 100644
index 0000000..aa5d751
--- /dev/null
+++ b/frontend/views/graph/components/graph.editor.js
@@ -0,0 +1,35 @@
+import React, { Component } from 'react'
+import { Route } from 'react-router-dom'
+import { bindActionCreators } from 'redux'
+import { connect } from 'react-redux'
+
+import { session } from '../../../session'
+
+import { Loader } from '../../../common'
+
+class GraphEditor extends Component {
+ state = {
+ }
+
+ render(){
+ console.log(this.props.graph)
+ const { res } = this.props.graph.show
+ return (
+ <div className='graph'>
+ {res.pages.map(page => {
+ console.log(page)
+ })}
+ </div>
+ )
+ }
+}
+
+const mapStateToProps = state => ({
+ graph: state.graph,
+})
+
+const mapDispatchToProps = dispatch => ({
+ // uploadActions: bindActionCreators({ ...uploadActions }, dispatch),
+})
+
+export default connect(mapStateToProps, mapDispatchToProps)(GraphEditor)