Skip to content

Commit

Permalink
Update packages/react/src/FileList/FileListItem.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Smedinga <[email protected]>
  • Loading branch information
dlnr and VincentSmedinga authored Dec 13, 2024
1 parent e6e5fc0 commit 266b0c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/FileList/FileListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const FileListItem = forwardRef(
({ file, onDelete, className, ...restProps }: FileListItemProps, ref: ForwardedRef<HTMLLIElement>) => (
<li {...restProps} ref={ref} className={clsx('ams-file-list__item', className)}>
<div className="ams-file-list__item-preview">
{file.type.includes('image') ? (
{file.type.startsWith('image/') ? (
<img src={URL.createObjectURL(file)} alt={file.name} />
) : (
<Icon svg={DocumentIcon} size="level-3" square />
Expand Down

0 comments on commit 266b0c0

Please sign in to comment.