Fix more code discrepancies

master
Claire 2023-11-15 13:19:37 +01:00
parent 1023c2f90b
commit 349579e318
5 changed files with 9 additions and 9 deletions

View File

@ -110,8 +110,9 @@ class ModalRoot extends PureComponent {
} }
_handleModalClose () { _handleModalClose () {
this.unlistenHistory(); if (this.unlistenHistory) {
this.unlistenHistory();
}
const { state } = this.history.location; const { state } = this.history.location;
if (state && state.mastodonModalKey === this._modalHistoryKey) { if (state && state.mastodonModalKey === this._modalHistoryKey) {
this.history.goBack(); this.history.goBack();

View File

@ -138,7 +138,6 @@ const emojify = (str, customEmojis = {}) => {
}; };
export default emojify; export default emojify;
export { unicodeMapping };
export const buildCustomEmojis = (customEmojis) => { export const buildCustomEmojis = (customEmojis) => {
const emojis = []; const emojis = [];

View File

@ -48,7 +48,7 @@ class Mutes extends ImmutablePureComponent {
}, 300, { leading: true }); }, 300, { leading: true });
render () { render () {
const { intl, accountIds, hasMore, multiColumn, isLoading } = this.props; const { intl, hasMore, accountIds, multiColumn, isLoading } = this.props;
if (!accountIds) { if (!accountIds) {
return ( return (

View File

@ -44,14 +44,14 @@ const mapStateToProps = (state, { columnId }) => {
class PublicTimeline extends PureComponent { class PublicTimeline extends PureComponent {
static defaultProps = {
onlyMedia: false,
};
static contextTypes = { static contextTypes = {
identity: PropTypes.object, identity: PropTypes.object,
}; };
static defaultProps = {
onlyMedia: false,
};
static propTypes = { static propTypes = {
dispatch: PropTypes.func.isRequired, dispatch: PropTypes.func.isRequired,
intl: PropTypes.object.isRequired, intl: PropTypes.object.isRequired,

View File

@ -68,8 +68,8 @@ const reducers = {
push_notifications, push_notifications,
mutes, mutes,
blocks, blocks,
server,
boosts, boosts,
server,
contexts, contexts,
compose, compose,
search, search,