Fix disable quick preview for mobile (#134)

* 🐛remove redirect to the mobile app

* disable quick preview for mobile
This commit is contained in:
Anton Shepilov
2023-06-28 14:14:51 +02:00
committed by GitHub
parent 4e8e8ae2d4
commit 8ed6ac4097
@@ -19,6 +19,7 @@ import { useState } from 'react';
import Avatar from '../../../../../atoms/avatar';
import { PublicIcon } from '../components/public-icon';
import { CheckableIcon, DriveItemProps } from './common';
import { getDevice } from '../../../../../features/global/utils/device';
export const DocumentRow = ({
item,
@@ -39,7 +40,11 @@ export const DocumentRow = ({
const hasThumbnails = !!metadata.thumbnails?.length || false;
const preview = () => {
open(item);
const device = getDevice();
console.log("DEVICE:: " + device);
if (device != "ios" && device != "android") {
open(item);
}
};
return (