changed
This commit is contained in:
@@ -12,7 +12,6 @@ interface FileRowProps {
|
|||||||
onRemove: (id: string) => void;
|
onRemove: (id: string) => void;
|
||||||
onDownload: (file: UploadedFile) => void;
|
onDownload: (file: UploadedFile) => void;
|
||||||
onPreview: (file: UploadedFile) => void;
|
onPreview: (file: UploadedFile) => void;
|
||||||
onDeleteConverted: (id: string) => void;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FileRow({
|
export function FileRow({
|
||||||
@@ -22,7 +21,6 @@ export function FileRow({
|
|||||||
onRemove,
|
onRemove,
|
||||||
onDownload,
|
onDownload,
|
||||||
onPreview,
|
onPreview,
|
||||||
onDeleteConverted,
|
|
||||||
}: FileRowProps) {
|
}: FileRowProps) {
|
||||||
const color = CATEGORY_COLORS[file.category];
|
const color = CATEGORY_COLORS[file.category];
|
||||||
const icon = CATEGORY_ICONS[file.category];
|
const icon = CATEGORY_ICONS[file.category];
|
||||||
@@ -105,7 +103,7 @@ export function FileRow({
|
|||||||
|
|
||||||
{/* Status / actions */}
|
{/* Status / actions */}
|
||||||
<div className="w-[130px] flex items-center justify-end gap-1.5 flex-shrink-0 pr-1">
|
<div className="w-[130px] flex items-center justify-end gap-1.5 flex-shrink-0 pr-1">
|
||||||
<DesktopStatus file={file} color={color} onRemove={onRemove} onDownload={onDownload} onPreview={onPreview} onDeleteConverted={onDeleteConverted} />
|
<DesktopStatus file={file} color={color} onRemove={onRemove} onDownload={onDownload} onPreview={onPreview}/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -184,14 +182,12 @@ function DesktopStatus({
|
|||||||
onRemove,
|
onRemove,
|
||||||
onDownload,
|
onDownload,
|
||||||
onPreview,
|
onPreview,
|
||||||
onDeleteConverted,
|
|
||||||
}: {
|
}: {
|
||||||
file: UploadedFile;
|
file: UploadedFile;
|
||||||
color: string;
|
color: string;
|
||||||
onRemove: (id: string) => void;
|
onRemove: (id: string) => void;
|
||||||
onDownload: (file: UploadedFile) => void;
|
onDownload: (file: UploadedFile) => void;
|
||||||
onPreview: (file: UploadedFile) => void;
|
onPreview: (file: UploadedFile) => void;
|
||||||
onDeleteConverted: (id: string) => void;
|
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<AnimatePresence mode="wait">
|
<AnimatePresence mode="wait">
|
||||||
|
|||||||
Reference in New Issue
Block a user