show live photo overlay only on live photos

This commit is contained in:
Abhinav 2022-02-15 09:26:36 +05:30
parent 80db61133a
commit 93505f9bc4

View file

@ -12,6 +12,7 @@ import {
} from 'utils/publicCollectionGallery'; } from 'utils/publicCollectionGallery';
import PublicCollectionDownloadManager from 'services/publicCollectionDownloadManager'; import PublicCollectionDownloadManager from 'services/publicCollectionDownloadManager';
import LivePhotoIndicatorOverlay from 'components/icons/LivePhotoIndicatorOverlay'; import LivePhotoIndicatorOverlay from 'components/icons/LivePhotoIndicatorOverlay';
import { FILE_TYPE } from 'constants/file';
interface IProps { interface IProps {
file: EnteFile; file: EnteFile;
@ -284,7 +285,9 @@ export default function PreviewCard(props: IProps) {
<InSelectRangeOverLay <InSelectRangeOverLay
active={isRangeSelectActive && isInsSelectRange} active={isRangeSelectActive && isInsSelectRange}
/> />
<LivePhotoIndicatorOverlay /> {file?.metadata.fileType === FILE_TYPE.LIVE_PHOTO && (
<LivePhotoIndicatorOverlay />
)}
</Cont> </Cont>
); );
} }