summaryrefslogtreecommitdiff
path: root/animism-align/frontend/views/align/containers/script.container.js
blob: ce3dee8550a4577341bcb69016a88ef7cb71f98a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React, { Component } from 'react'
// import { Link } from 'react-router-dom'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'

import actions from '../../../actions'
// import * as alignActions from '../align.actions'

class Timeline extends Component {
  constructor(props){
    super(props)
  }
  render() {
    if (this.props.text.loading) return <div />
    return (
      <textarea 
        className='script'
        onChange={e => actions.site.updateText(e.target.value)}
        value={this.props.text}
      />
    )
  }
}


const mapStateToProps = state => ({
  text: state.site.text,
})

const mapDispatchToProps = dispatch => ({
  // alignActions: bindActionCreators({ ...alignActions }, dispatch),
})

export default connect(mapStateToProps, mapDispatchToProps)(Timeline)