Fix disable quick preview for mobile (#134)
* 🐛remove redirect to the mobile app * ✨disable quick preview for mobile
This commit is contained in:
@@ -19,6 +19,7 @@ import { useState } from 'react';
|
|||||||
import Avatar from '../../../../../atoms/avatar';
|
import Avatar from '../../../../../atoms/avatar';
|
||||||
import { PublicIcon } from '../components/public-icon';
|
import { PublicIcon } from '../components/public-icon';
|
||||||
import { CheckableIcon, DriveItemProps } from './common';
|
import { CheckableIcon, DriveItemProps } from './common';
|
||||||
|
import { getDevice } from '../../../../../features/global/utils/device';
|
||||||
|
|
||||||
export const DocumentRow = ({
|
export const DocumentRow = ({
|
||||||
item,
|
item,
|
||||||
@@ -39,7 +40,11 @@ export const DocumentRow = ({
|
|||||||
const hasThumbnails = !!metadata.thumbnails?.length || false;
|
const hasThumbnails = !!metadata.thumbnails?.length || false;
|
||||||
|
|
||||||
const preview = () => {
|
const preview = () => {
|
||||||
|
const device = getDevice();
|
||||||
|
console.log("DEVICE:: " + device);
|
||||||
|
if (device != "ios" && device != "android") {
|
||||||
open(item);
|
open(item);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user