Skip to content

Commit

Permalink
fix(FilePreviewItem): add file type for correct file icons
Browse files Browse the repository at this point in the history
  • Loading branch information
arnautov-anton committed Aug 2, 2022
1 parent 195fe39 commit 6e6fce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MessageInput/UploadsPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const FilePreviewItem = ({ id }: PreviewItemProps) => {
return (
<div className='str-chat__attachment-preview-file'>
<div className='str-chat__attachment-preview-file-icon'>
<FileIcon filename={file.file.name} version='2' />
<FileIcon filename={file.file.name} mimeType={file.file.type} version='2' />
</div>

<button
Expand Down

0 comments on commit 6e6fce5

Please sign in to comment.