Skip to content

Commit

Permalink
fix(Commons): file type display
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeaturner committed Jul 2, 2024
1 parent 0fd643b commit 64a97d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ const FileCardContent: React.FC<FileCardContentProps> = ({
{file.license?.name ? file.license.name : "Unknown License"}{" "}
{file.license?.version ? `${file.license.version}` : ""}
</CardMetaWIcon> */}
{!file.isURL && file.storageType === "file" && (
{file.storageType === "file" && (
<CardMetaWIcon icon={getFileTypeIcon(file)}>
<div className="line-clamp-1">{file.mimeType ?? ""}</div>
<div className="line-clamp-1">{file.isURL ? 'External Link' : file.mimeType ?? ""}</div>
</CardMetaWIcon>
)}
{/* <div className="max-h-20 overflow-hidden mt-1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ const AssetDetailModal: React.FC<AssetDetailModalProps> = ({ file }) => {
textClassName="!text-black"
className="my-4"
/> */}
{!file.isURL && file.storageType === "file" && (
{file.storageType === "file" && (
<CatalogDetailMeta
icon={getFileTypeIcon(file)}
text={file.mimeType ?? "Unknown"}
text={file.isURL ? 'External Link' : file.mimeType ?? "Unknown"}
className="my-4"
/>
)}
Expand Down

0 comments on commit 64a97d6

Please sign in to comment.