Commit 8f9ff563 authored by Johnny's avatar Johnny

chore: remove redundant icon

parent 9a3451b9
import { ChevronDownIcon, ChevronUpIcon, FileIcon, Loader2Icon, PaperclipIcon, XIcon } from "lucide-react"; import { ChevronDownIcon, ChevronUpIcon, FileIcon, PaperclipIcon, XIcon } from "lucide-react";
import type { FC } from "react"; import type { FC } from "react";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
import type { Attachment } from "@/types/proto/api/v1/attachment_service_pb"; import type { Attachment } from "@/types/proto/api/v1/attachment_service_pb";
...@@ -21,7 +21,7 @@ const AttachmentItemCard: FC<{ ...@@ -21,7 +21,7 @@ const AttachmentItemCard: FC<{
canMoveUp?: boolean; canMoveUp?: boolean;
canMoveDown?: boolean; canMoveDown?: boolean;
}> = ({ item, onRemove, onMoveUp, onMoveDown, canMoveUp = true, canMoveDown = true }) => { }> = ({ item, onRemove, onMoveUp, onMoveDown, canMoveUp = true, canMoveDown = true }) => {
const { category, filename, thumbnailUrl, mimeType, size, isLocal } = item; const { category, filename, thumbnailUrl, mimeType, size } = item;
const fileTypeLabel = getFileTypeLabel(mimeType); const fileTypeLabel = getFileTypeLabel(mimeType);
const fileSizeLabel = size ? formatFileSize(size) : undefined; const fileSizeLabel = size ? formatFileSize(size) : undefined;
...@@ -41,12 +41,6 @@ const AttachmentItemCard: FC<{ ...@@ -41,12 +41,6 @@ const AttachmentItemCard: FC<{
</span> </span>
<div className="flex items-center gap-1 text-[11px] text-muted-foreground shrink-0"> <div className="flex items-center gap-1 text-[11px] text-muted-foreground shrink-0">
{isLocal && (
<>
<Loader2Icon className="w-2.5 h-2.5 animate-spin" />
<span className="text-muted-foreground/50"></span>
</>
)}
<span>{fileTypeLabel}</span> <span>{fileTypeLabel}</span>
{fileSizeLabel && ( {fileSizeLabel && (
<> <>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment