Web:Client:Change isDesktop to isMobile.
This commit is contained in:
parent
3b5491065a
commit
b8844b644f
@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react";
|
||||
import { withTranslation } from "react-i18next";
|
||||
|
||||
import { inject, observer } from "mobx-react";
|
||||
import { isMobile, isDesktop } from "react-device-detect";
|
||||
import { isMobile } from "react-device-detect";
|
||||
|
||||
import withLoading from "SRC_DIR/HOCs/withLoading";
|
||||
import Whitelabel from "./Branding/whitelabel";
|
||||
@ -63,7 +63,7 @@ const Branding = ({ t, isLoadedCompanyInfoSettingsData, isSettingPaid }) => {
|
||||
}, []);
|
||||
|
||||
const onCheckView = () => {
|
||||
if (isDesktop && window.innerWidth > 1024) {
|
||||
if (!isMobile && window.innerWidth > 1024) {
|
||||
setViewDesktop(true);
|
||||
} else {
|
||||
setViewDesktop(false);
|
||||
|
Loading…
Reference in New Issue
Block a user