Fix more code discrepancies

This commit is contained in:
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 () {
this.unlistenHistory();
if (this.unlistenHistory) {
this.unlistenHistory();
}
const { state } = this.history.location;
if (state && state.mastodonModalKey === this._modalHistoryKey) {
this.history.goBack();

View File

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

View File

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

View File

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

View File

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