Web:Client:Change isDesktop to isMobile.

This commit is contained in:
Vlada Gazizova 2022-10-13 18:02:46 +03:00
parent 3b5491065a
commit b8844b644f

View File

@ -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);