blob: d23b3daf6187977ce5807d880accc30b09efbf58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import React, { Component } from 'react'
// import { Link } from 'react-router-dom'
import { connect } from 'react-redux'
import actions from 'app/actions'
const Script = ({ text }) => {
if (text.loading) return null
return (
<textarea
className='script'
onChange={e => actions.site.updateText(e.target.value)}
value={text}
/>
)
}
const mapStateToProps = state => ({
text: state.align.text,
})
export default connect(mapStateToProps)(Script)
|