From bebcf5af737f365eec0e7cdf72a0215f48ef966b Mon Sep 17 00:00:00 2001 From: Lars Date: Fri, 8 May 2026 08:59:13 +0200 Subject: [PATCH] refactor: update media icons in MediaLibraryPage for clarity - Renamed imported media icons to avoid naming conflicts, using 'LucideImage' and 'LucideVideo' for better clarity. - Updated the MediaTypeGlyph component to utilize the renamed icons for rendering media types, ensuring consistent icon representation. --- frontend/src/pages/MediaLibraryPage.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/MediaLibraryPage.jsx b/frontend/src/pages/MediaLibraryPage.jsx index b5b4c16..4ad8f22 100644 --- a/frontend/src/pages/MediaLibraryPage.jsx +++ b/frontend/src/pages/MediaLibraryPage.jsx @@ -13,8 +13,8 @@ import { CircleDot, FilePenLine, Copyright, - Image, - Video, + Image as LucideImage, + Video as LucideVideo, FileText, File, Upload, @@ -219,8 +219,8 @@ function MediaTypeGlyph({ mimeType, compact }) { const kind = previewDisplayKind(mimeType) const label = MEDIA_KIND_LABELS[kind] || 'Medium' let Icon = File - if (kind === 'image') Icon = Image - else if (kind === 'video') Icon = Video + if (kind === 'image') Icon = LucideImage + else if (kind === 'video') Icon = LucideVideo else if (kind === 'pdf') Icon = FileText const sz = compact ? 12 : 14 return (