Skip to content

Commit b962436

Browse files
committed
Add support for PPT, Excel preview and video playback
1 parent 795058c commit b962436

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

public/sw.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/dashboard/UploadFlow.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22

33
import { useState, useEffect } from "react";
4-
import { UploadCloud, File, Film, Image as ImageIcon, CheckCircle, XCircle, Trash2 } from "lucide-react";
4+
import { UploadCloud, File, Film, Image as ImageIcon, CheckCircle, XCircle, Trash2, FileSpreadsheet, Presentation } from "lucide-react";
55
import {
66
getDepartments,
77
getBatches,
@@ -186,6 +186,8 @@ export default function UploadFlow() {
186186
if (type.includes("pdf")) return <File size={32} className={styles.iconDoc} />;
187187
if (type.includes("video")) return <Film size={32} className={styles.iconVid} />;
188188
if (type.includes("image")) return <ImageIcon size={32} className={styles.iconImg} />;
189+
if (type.includes("excel") || type.includes("spreadsheet") || type.includes("csv")) return <FileSpreadsheet size={32} color="#16a34a" />;
190+
if (type.includes("powerpoint") || type.includes("presentation")) return <Presentation size={32} color="#f97316" />;
189191
return <UploadCloud size={32} />;
190192
};
191193

0 commit comments

Comments
 (0)