summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/editor/overview
diff options
context:
space:
mode:
Diffstat (limited to 'animism-align/frontend/app/views/editor/overview')
-rw-r--r--animism-align/frontend/app/views/editor/overview/overview.container.js64
-rw-r--r--animism-align/frontend/app/views/editor/overview/overview.css3
2 files changed, 67 insertions, 0 deletions
diff --git a/animism-align/frontend/app/views/editor/overview/overview.container.js b/animism-align/frontend/app/views/editor/overview/overview.container.js
new file mode 100644
index 0000000..8ce64b9
--- /dev/null
+++ b/animism-align/frontend/app/views/editor/overview/overview.container.js
@@ -0,0 +1,64 @@
+import React, { Component } from 'react'
+import { connect } from 'react-redux'
+import { Link } from 'react-router-dom'
+
+import './overview.css'
+
+// import actions from 'app/actions'
+import { Loader } from 'app/common'
+import { groupResponseBy } from 'app/utils/api.utils'
+
+class OverviewContainer extends Component {
+ state = {
+ ready: true,
+ }
+
+ constructor(props) {
+ super(props)
+ }
+
+ componentDidMount() {
+ this.build()
+ }
+
+ componentDidUpdate(prevProps) {
+ if (!this.state.ready) {
+ this.build()
+ }
+ }
+
+ build() {
+ if (this.props.loading) return
+ // const episodes = groupResponseBy(this.props.episodes, 'project_id')
+ // const venues = groupResponseBy(this.props.venues, 'project_id')
+ // this.setState({ ready: true, episodes, venues })
+ }
+
+ render() {
+ const { loading, projects } = this.props
+ const { episodes, venues, ready } = this.state
+ if (loading || !ready) {
+ return (
+ <div className='dashboard'>
+ <Loader />
+ </div>
+ )
+ }
+ return (
+ <div className='dashboard overview'>
+ <div className='project-top'>
+ <div className='row project-heading'>
+ <div className='title'>
+ <h1>Episode</h1>
+ </div>
+ </div>
+ </div>
+ </div>
+ )
+ }
+}
+
+const mapStateToProps = state => ({
+})
+
+export default connect(mapStateToProps)(OverviewContainer)
diff --git a/animism-align/frontend/app/views/editor/overview/overview.css b/animism-align/frontend/app/views/editor/overview/overview.css
new file mode 100644
index 0000000..abd6c93
--- /dev/null
+++ b/animism-align/frontend/app/views/editor/overview/overview.css
@@ -0,0 +1,3 @@
+.overview {
+
+} \ No newline at end of file