diff --git a/app/gabsocial/components/badge.js b/app/gabsocial/components/badge.js index 06ad909ff..f38200d79 100644 --- a/app/gabsocial/components/badge.js +++ b/app/gabsocial/components/badge.js @@ -1,7 +1,13 @@ import React from 'react'; +import PropTypes from 'prop-types'; const Badge = (props) => ( {props.title} ); +Badge.propTypes = { + title: PropTypes.string.isRequired, + slug: PropTypes.string.isRequired, +}; + export default Badge; diff --git a/app/gabsocial/components/home_column_header.js b/app/gabsocial/components/home_column_header.js index c7ab71a1a..f92428223 100644 --- a/app/gabsocial/components/home_column_header.js +++ b/app/gabsocial/components/home_column_header.js @@ -48,6 +48,7 @@ class ColumnHeader extends React.PureComponent { activeItem: PropTypes.string, activeSubItem: PropTypes.string, lists: ImmutablePropTypes.list, + siteTitle: PropTypes.string, }; state = { diff --git a/app/gabsocial/containers/gabsocial.js b/app/gabsocial/containers/gabsocial.js index 5dba84eb0..90a961018 100644 --- a/app/gabsocial/containers/gabsocial.js +++ b/app/gabsocial/containers/gabsocial.js @@ -48,6 +48,7 @@ class GabSocialMount extends React.PureComponent { static propTypes = { showIntroduction: PropTypes.bool, + me: PropTypes.string, }; render () { diff --git a/app/gabsocial/features/compose/components/action_bar.js b/app/gabsocial/features/compose/components/action_bar.js index 46880631f..6c9a2dfa1 100644 --- a/app/gabsocial/features/compose/components/action_bar.js +++ b/app/gabsocial/features/compose/components/action_bar.js @@ -35,6 +35,8 @@ class ActionBar extends React.PureComponent { static propTypes = { intl: PropTypes.object.isRequired, size: PropTypes.number, + onOpenHotkeys: PropTypes.func.isRequired, + onClickLogOut: PropTypes.func.isRequired, }; handleHotkeyClick = () => { diff --git a/app/gabsocial/features/groups/create/index.js b/app/gabsocial/features/groups/create/index.js index 26b886d44..2bcfa84b4 100644 --- a/app/gabsocial/features/groups/create/index.js +++ b/app/gabsocial/features/groups/create/index.js @@ -44,6 +44,9 @@ class Create extends React.PureComponent { intl: PropTypes.object.isRequired, onTitleChange: PropTypes.func.isRequired, onSubmit: PropTypes.func.isRequired, + reset: PropTypes.func.isRequired, + onDescriptionChange: PropTypes.func.isRequired, + onCoverImageChange: PropTypes.func.isRequired, }; componentWillMount() { diff --git a/app/gabsocial/features/groups/edit/index.js b/app/gabsocial/features/groups/edit/index.js index 0ff9d463e..2b0838570 100644 --- a/app/gabsocial/features/groups/edit/index.js +++ b/app/gabsocial/features/groups/edit/index.js @@ -50,6 +50,9 @@ class Edit extends React.PureComponent { intl: PropTypes.object.isRequired, onTitleChange: PropTypes.func.isRequired, onSubmit: PropTypes.func.isRequired, + onDescriptionChange: PropTypes.func.isRequired, + onCoverImageChange: PropTypes.func.isRequired, + setUp: PropTypes.func.isRequired, }; componentWillMount(nextProps) { diff --git a/app/gabsocial/features/groups/removed_accounts/index.js b/app/gabsocial/features/groups/removed_accounts/index.js index 95a5dc9a5..10eb18b45 100644 --- a/app/gabsocial/features/groups/removed_accounts/index.js +++ b/app/gabsocial/features/groups/removed_accounts/index.js @@ -53,6 +53,12 @@ class GroupRemovedAccounts extends ImmutablePureComponent { this.props.dispatch(expandRemovedAccounts(this.props.params.id)); }, 300, { leading: true }); + handleOnActionClick = (group, id) => { + return () => { + this.props.dispatch(removeRemovedAccount(group.get('id'), id)); + }; + } + render () { const { accountIds, hasMore, group, intl } = this.props; @@ -76,7 +82,7 @@ class GroupRemovedAccounts extends ImmutablePureComponent { key={id} id={id} actionIcon='remove' - onActionClick={() => this.props.dispatch(removeRemovedAccount(group.get('id'), id))} + onActionClick={this.handleOnActionClick(group, id)} actionTitle={intl.formatMessage(messages.remove)} />))} diff --git a/app/gabsocial/features/groups/timeline/components/header.js b/app/gabsocial/features/groups/timeline/components/header.js index 75117d6bb..adfa6d619 100644 --- a/app/gabsocial/features/groups/timeline/components/header.js +++ b/app/gabsocial/features/groups/timeline/components/header.js @@ -27,16 +27,20 @@ class Header extends ImmutablePureComponent { router: PropTypes.object, }; + toggle = () => { + const { group, relationships, toggleMembership } = this.props; + toggleMembership(group, relationships); + } + getActionButton() { - const { group, relationships, toggleMembership, intl } = this.props; - const toggle = () => toggleMembership(group, relationships); + const { group, relationships, intl } = this.props; if (!relationships) { return ''; } else if (!relationships.get('member')) { - return