TP-69909 | VKYC video fix
This commit is contained in:
@@ -7,7 +7,7 @@ import { CLICKSTREAM_EVENT_NAMES } from '@common/Constants';
|
||||
import VKYCVideo from './utils/VKYCVideo';
|
||||
import DocumentImageComponent from './DocumentImageComponent';
|
||||
import { GenericStyles, getShadowStyle } from '@rn-ui-lib/styles';
|
||||
import { DocumentContentType, IDocumentItem } from './interface';
|
||||
import { DOCUMENT_TYPE, DocumentContentType, IDocumentItem } from './interface';
|
||||
import { COLORS } from '@rn-ui-lib/colors';
|
||||
import { CaseAllocationType } from '@screens/allCases/interface';
|
||||
import { useAppSelector } from '@hooks';
|
||||
@@ -37,7 +37,8 @@ const DocumentDataItem: React.FC<IDocumentDataItem> = ({
|
||||
docContentType,
|
||||
documentRefId,
|
||||
documentName,
|
||||
unsignedUri
|
||||
unsignedUri,
|
||||
documentKey
|
||||
} = document || {};
|
||||
|
||||
const [isExpanded, setIsExpanded] = useState<boolean>();
|
||||
@@ -47,7 +48,10 @@ const DocumentDataItem: React.FC<IDocumentDataItem> = ({
|
||||
}));
|
||||
|
||||
const isPDF = docContentType?.includes(DocumentContentType.PDF);
|
||||
const isVideo = (docContentType === DocumentContentType.VIDEO || docContentType === DocumentContentType.VIDEO_MP4);
|
||||
const isVideo =
|
||||
docContentType === DocumentContentType.VIDEO ||
|
||||
docContentType === DocumentContentType.VIDEO_MP4 ||
|
||||
documentKey === DOCUMENT_TYPE.VKYC_VIDEO;
|
||||
|
||||
const handleOpenPdfPress = () => {
|
||||
if (!viewable) return;
|
||||
|
||||
Reference in New Issue
Block a user