handle mobile

This commit is contained in:
Aakansha Doshi 2022-07-13 16:22:00 +05:30
parent 67bc10f33b
commit 274294a367
4 changed files with 10 additions and 11 deletions

View file

@ -1,4 +1,5 @@
import { isExcalidrawPlusSignedUser, PlusAppLinkJSX, PlusLPLinkJSX } from "..";
import { useDevice } from "../../components/App";
import { shield } from "../../components/icons";
import { Tooltip } from "../../components/Tooltip";
import { t } from "../../i18n";
@ -20,15 +21,14 @@ const EncryptedIcon = () => (
);
const Footer = ({
isMobile,
langCode,
onLangChange,
}: {
isMobile: boolean;
langCode: string;
onLangChange: (langCode: string) => void;
}) => {
if (isMobile) {
const device = useDevice();
if (device.isMobile) {
const isTinyDevice = window.innerWidth < 362;
return (
<div

View file

@ -645,7 +645,6 @@ const ExcalidrawWrapper = () => {
autoFocus={true}
>
<Footer
isMobile={false}
langCode={langCode}
onLangChange={(langCode) => setLangCode(langCode)}
/>