fixed ismobile at map dialog

This commit is contained in:
muerwre 2019-02-19 10:03:10 +07:00
parent 559d6c8d07
commit a0296f6332
3 changed files with 8 additions and 9 deletions

View file

@ -45,7 +45,7 @@ class Component extends React.Component<Props, State> {
};
openRoute = (_id: string): void => {
if (isMobile) this.props.setDialogActive(false);
if (isMobile()) this.props.setDialogActive(false);
pushPath(`/${_id}/${this.props.editing ? 'edit' : ''}`);
};
@ -55,7 +55,7 @@ class Component extends React.Component<Props, State> {
const delta = scrollHeight - scrollTop - clientHeight;
if (
delta < 300 &&
delta < 500 &&
this.props.routes.list.length < this.props.routes.limit &&
!this.props.routes.loading
) {