From 9bf79ecf6c0ccdf9465a25c4b4423a04e40e2c03 Mon Sep 17 00:00:00 2001 From: Yiannis Christodoulou Date: Fri, 19 Sep 2025 13:08:15 +0300 Subject: [PATCH] feat: Video and Audio needs the same component now --- frontend/src/static/js/pages/MediaPage.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/static/js/pages/MediaPage.js b/frontend/src/static/js/pages/MediaPage.js index 16e2739f..393071e6 100755 --- a/frontend/src/static/js/pages/MediaPage.js +++ b/frontend/src/static/js/pages/MediaPage.js @@ -2,7 +2,7 @@ import React from 'react'; import { SiteConsumer } from '../utils/contexts/'; import { MediaPageStore } from '../utils/stores/'; import AttachmentViewer from '../components/media-viewer/AttachmentViewer'; -import AudioViewer from '../components/media-viewer/AudioViewer'; +// import AudioViewer from '../components/media-viewer/AudioViewer'; import ImageViewer from '../components/media-viewer/ImageViewer'; import PdfViewer from '../components/media-viewer/PdfViewer'; import VideoViewer from '../components/media-viewer/VideoViewer'; @@ -46,11 +46,10 @@ export class MediaPage extends _VideoMediaPage { viewerContainerContent(mediaData) { switch (MediaPageStore.get('media-type')) { case 'video': + case 'audio': return ( {(site) => } ); - case 'audio': - return ; case 'image': return ; case 'pdf':