Updates for missing vars in components
This commit is contained in:
@@ -157,7 +157,7 @@ class AccountGallery extends ImmutablePureComponent {
|
||||
}
|
||||
|
||||
render () {
|
||||
const { attachments, isLoading, hasMore, isAccount, accountId, unavailable, accountUsername } = this.props;
|
||||
const { attachments, isLoading, hasMore, isAccount, accountId, unavailable, accountUsername, intl } = this.props;
|
||||
const { width } = this.state;
|
||||
|
||||
if (!isAccount && accountId !== -1) {
|
||||
|
||||
@@ -6,6 +6,8 @@ import classNames from 'classnames';
|
||||
import { decode } from 'blurhash';
|
||||
import { isIOS } from 'gabsocial/utils/is_mobile';
|
||||
|
||||
import './media_item.scss';
|
||||
|
||||
export default class MediaItem extends ImmutablePureComponent {
|
||||
|
||||
static propTypes = {
|
||||
|
||||
@@ -17,9 +17,11 @@ export default class CharacterCounter extends PureComponent {
|
||||
'character-counter--over': (diff < 0),
|
||||
});
|
||||
|
||||
<div className='character-counter__wrapper'>
|
||||
<span className={classes}>{diff}</span>
|
||||
</div>
|
||||
return (
|
||||
<div className='character-counter__wrapper'>
|
||||
<span className={classes}>{diff}</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ class ComposeSearch extends PureComponent {
|
||||
}
|
||||
|
||||
render () {
|
||||
const { intl, value, onShow, ...rest } = this.props;
|
||||
const { intl, value, onShow, openInRoute } = this.props;
|
||||
|
||||
return (
|
||||
<Search
|
||||
@@ -61,7 +61,7 @@ class ComposeSearch extends PureComponent {
|
||||
handleClear={this.handleClear}
|
||||
onShow={onShow}
|
||||
withOverlay
|
||||
{...rest}
|
||||
openInRoute
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -43,7 +43,6 @@ const mapStateToProps = (state, { params: { username } }) => {
|
||||
|
||||
|
||||
export default @connect(mapStateToProps)
|
||||
@injectIntl
|
||||
class Following extends ImmutablePureComponent {
|
||||
|
||||
static propTypes = {
|
||||
|
||||
@@ -48,7 +48,7 @@ class ListEditorSearch extends PureComponent {
|
||||
}
|
||||
|
||||
render () {
|
||||
const { value, intl, ...rest } = this.props;
|
||||
const { value, intl } = this.props;
|
||||
|
||||
return (
|
||||
<Search
|
||||
@@ -60,7 +60,6 @@ class ListEditorSearch extends PureComponent {
|
||||
handleSubmit={this.handleSubmit}
|
||||
handleClear={this.handleClear}
|
||||
searchTitle={intl.formatMessage(messages.searchTitle)}
|
||||
{...rest}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { defineMessages, injectIntl } from 'react-intl';
|
||||
import SectionHeadlineBar from '../../../../components/section_headline_bar';
|
||||
|
||||
const tooltips = defineMessages({
|
||||
const messages = defineMessages({
|
||||
mentions: { id: 'notifications.filter.mentions', defaultMessage: 'Mentions' },
|
||||
favourites: { id: 'notifications.filter.favourites', defaultMessage: 'Favorites' },
|
||||
boosts: { id: 'notifications.filter.boosts', defaultMessage: 'Reposts' },
|
||||
@@ -58,33 +58,33 @@ class NotificationFilterBar extends PureComponent {
|
||||
{
|
||||
className: selectedFilter === 'mention' ? 'active' : '',
|
||||
onClick: this.onClick('mention'),
|
||||
title: intl.formatMessage(tooltips.mentions),
|
||||
title: intl.formatMessage(messages.mentions),
|
||||
icon: 'at',
|
||||
},
|
||||
{
|
||||
className: selectedFilter === 'favourite' ? 'active' : '',
|
||||
onClick: this.onClick('favourite'),
|
||||
title: intl.formatMessage(tooltips.favourites),
|
||||
title: intl.formatMessage(messages.favourites),
|
||||
icon: 'star',
|
||||
},
|
||||
{
|
||||
className: selectedFilter === 'reblog' ? 'active' : '',
|
||||
onClick: this.onClick('reblog'),
|
||||
title: intl.formatMessage(tooltips.boosts),
|
||||
title: intl.formatMessage(messages.boosts),
|
||||
icon: 'retweet',
|
||||
},
|
||||
{
|
||||
className: selectedFilter === 'poll' ? 'active' : '',
|
||||
onClick: this.onClick('poll'),
|
||||
title: intl.formatMessage(tooltips.polls),
|
||||
title: intl.formatMessage(messages.polls),
|
||||
icon: 'tasks',
|
||||
},
|
||||
{
|
||||
className: selectedFilter === 'follow' ? 'active' : '',
|
||||
onClick: this.onClick('follow'),
|
||||
title: intl.formatMessage(tooltips.follows),
|
||||
title: intl.formatMessage(messages.follows),
|
||||
icon: 'user-plus',
|
||||
}
|
||||
},
|
||||
]}
|
||||
/>
|
||||
)
|
||||
|
||||
@@ -420,7 +420,7 @@ class Status extends ImmutablePureComponent {
|
||||
const { fullscreen } = this.state;
|
||||
|
||||
if (status === null) {
|
||||
return (<ColumnIndicator type='missing' />);
|
||||
return (<ColumnIndicator type='loading' />);
|
||||
}
|
||||
|
||||
if (ancestorsIds && ancestorsIds.size > 0) {
|
||||
|
||||
Reference in New Issue
Block a user