fix: show download per document attachment
This commit is contained in:
@@ -16,9 +16,10 @@ import {
|
||||
} from "../../SaveToAlbumGuide";
|
||||
import { useToast } from "../../Toast";
|
||||
import { FavoriteButton } from "../../../favorites/FavoriteButton";
|
||||
import { BubbleAttachmentDownloadButton } from "../BubbleAttachmentDownloadButton";
|
||||
import type { MessageBubbleVariant } from "../MessageBubble";
|
||||
|
||||
function AttachmentRow({ att }: { postId: string; att: Attachment }) {
|
||||
function AttachmentRow({ postId, att }: { postId: string; att: Attachment }) {
|
||||
const { Icon, color } = fileIcon({ mime: att.mime, filename: att.filename });
|
||||
const displayFilename = filenameWithExtension(att.filename, att.mime);
|
||||
const [previewFailed, setPreviewFailed] = useState(false);
|
||||
@@ -69,6 +70,7 @@ function AttachmentRow({ att }: { postId: string; att: Attachment }) {
|
||||
{formatBytes(att.sizeBytes)}
|
||||
</div>
|
||||
</div>
|
||||
<BubbleAttachmentDownloadButton postId={postId} attachment={att} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user