Continuing updating the reformatting of propTypes and set redux, intl functions to end of component
• Removing: - the reformatting of propTypes and set redux, intl functions to end of component
This commit is contained in:
@@ -12,30 +12,8 @@ import Responsive from '../features/ui/util/responsive_component'
|
||||
import Avatar from './avatar'
|
||||
import Heading from './heading'
|
||||
|
||||
const messages = defineMessages({
|
||||
createPost: { id: 'column_header.create_post', defaultMessage: 'Create Post' },
|
||||
})
|
||||
|
||||
const mapStateToProps = (state) => ({
|
||||
account: state.getIn(['accounts', me]),
|
||||
})
|
||||
|
||||
export default
|
||||
@connect(mapStateToProps)
|
||||
@injectIntl
|
||||
class TimelineComposeBlock extends ImmutablePureComponent {
|
||||
|
||||
static propTypes = {
|
||||
intl: PropTypes.object.isRequired,
|
||||
account: ImmutablePropTypes.map.isRequired,
|
||||
size: PropTypes.number,
|
||||
modal: PropTypes.bool,
|
||||
}
|
||||
|
||||
static defaultProps = {
|
||||
size: 32,
|
||||
}
|
||||
|
||||
render() {
|
||||
const {
|
||||
account,
|
||||
@@ -77,4 +55,25 @@ class TimelineComposeBlock extends ImmutablePureComponent {
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
const messages = defineMessages({
|
||||
createPost: { id: 'column_header.create_post', defaultMessage: 'Create Post' },
|
||||
})
|
||||
|
||||
const mapStateToProps = (state) => ({
|
||||
account: state.getIn(['accounts', me]),
|
||||
})
|
||||
|
||||
TimelineComposeBlock.propTypes = {
|
||||
intl: PropTypes.object.isRequired,
|
||||
account: ImmutablePropTypes.map.isRequired,
|
||||
size: PropTypes.number,
|
||||
modal: PropTypes.bool,
|
||||
}
|
||||
|
||||
TimelineComposeBlock.defaultProps = {
|
||||
size: 32,
|
||||
}
|
||||
|
||||
export default injectIntl(connect(mapStateToProps)(TimelineComposeBlock))
|
||||
Reference in New Issue
Block a user