diff --git a/servers/nextjs/app/(presentation-generator)/upload/components/SupportingDoc.tsx b/servers/nextjs/app/(presentation-generator)/upload/components/SupportingDoc.tsx
index aca0469d..90a1beb1 100644
--- a/servers/nextjs/app/(presentation-generator)/upload/components/SupportingDoc.tsx
+++ b/servers/nextjs/app/(presentation-generator)/upload/components/SupportingDoc.tsx
@@ -1,7 +1,7 @@
'use client'
import React, { useRef, useState } from 'react'
-import { File, X, Upload, Image } from 'lucide-react'
+import { File, X, Upload } from 'lucide-react'
import { useToast } from '@/hooks/use-toast'
import { cn } from '@/lib/utils'
@@ -117,9 +117,6 @@ const SupportingDoc = ({ files, onFilesChange }: SupportingDocProps) => {
onFilesChange(updatedFiles)
}
- const isImageFile = (file: File): boolean => {
- return file.type?.startsWith('image/') || false
- }
return (
@@ -186,11 +183,7 @@ const SupportingDoc = ({ files, onFilesChange }: SupportingDocProps) => {
{filesWithIds.map((file) => {
- const isImage = isImageFile(file);
- let imageUrl = '';
- if (isImage) {
- imageUrl = URL.createObjectURL(file);
- }
+
return (
(
{
- {isImage ? (
-

- ) : (
-
- )}
+
+
+