fixed maps dialog mobile appearance

This commit is contained in:
muerwre 2019-02-15 11:56:27 +07:00
parent 679c485b89
commit df15cddb27
6 changed files with 26 additions and 9 deletions

View file

@ -9,6 +9,7 @@ import {
searchSetTab,
setDialogActive,
} from '$redux/user/actions';
import { isMobile } from '$utils/window';
import classnames from 'classnames';
import { Range } from 'rc-slider';
@ -44,6 +45,8 @@ class Component extends React.Component<Props, State> {
};
openRoute = (_id: string): void => {
if (isMobile) this.props.setDialogActive(false);
pushPath(`/${_id}/${this.props.editing ? 'edit' : ''}`);
};