fix some js errors due to number->string change of status ID

This commit is contained in:
Ondřej Hruška 2017-09-28 10:04:20 +02:00
parent 282a126b3f
commit 3e3073081d
3 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,7 @@ import NotificationOverlayContainer from '../notification/overlay/container';
export default class NotificationFollow extends ImmutablePureComponent { export default class NotificationFollow extends ImmutablePureComponent {
static propTypes = { static propTypes = {
id : PropTypes.number.isRequired, id : PropTypes.string.isRequired,
account : ImmutablePropTypes.map.isRequired, account : ImmutablePropTypes.map.isRequired,
notification : ImmutablePropTypes.map.isRequired, notification : ImmutablePropTypes.map.isRequired,
}; };

View file

@ -50,7 +50,7 @@ export default class StatusActionBar extends ImmutablePureComponent {
onEmbed: PropTypes.func, onEmbed: PropTypes.func,
onMuteConversation: PropTypes.func, onMuteConversation: PropTypes.func,
onPin: PropTypes.func, onPin: PropTypes.func,
me: PropTypes.number, me: PropTypes.string,
withDismiss: PropTypes.bool, withDismiss: PropTypes.bool,
intl: PropTypes.object.isRequired, intl: PropTypes.object.isRequired,
}; };

View file

@ -155,12 +155,12 @@ export default class Status extends ImmutablePureComponent {
}; };
static propTypes = { static propTypes = {
id : PropTypes.number, id : PropTypes.string,
status : ImmutablePropTypes.map, status : ImmutablePropTypes.map,
account : ImmutablePropTypes.map, account : ImmutablePropTypes.map,
settings : ImmutablePropTypes.map, settings : ImmutablePropTypes.map,
notification : ImmutablePropTypes.map, notification : ImmutablePropTypes.map,
me : PropTypes.number, me : PropTypes.string,
onFavourite : PropTypes.func, onFavourite : PropTypes.func,
onReblog : PropTypes.func, onReblog : PropTypes.func,
onModalReblog : PropTypes.func, onModalReblog : PropTypes.func,