add flags to help to decide file icon

This commit is contained in:
myl7
2022-01-24 16:03:35 +08:00
parent d3d69849c9
commit a53c0ab985
3 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ const DefaultPreview: FC<{ file: OdFileObject }> = ({ file }) => {
<PreviewContainer>
<div className="md:flex px-5 py-4 md:space-x-8 items-center">
<div className="text-center border rounded-lg px-10 py-20 border-gray-900/10 dark:border-gray-500/30">
<FontAwesomeIcon icon={getFileIcon(file.name)} />
<FontAwesomeIcon icon={getFileIcon(file.name, { video: Boolean(file.video) })} />
<div className="font-medium text-sm mt-6">{file.name}</div>
</div>