refactor(upload): replace upload card views with list table and addition details in table

This commit is contained in:
2026-06-30 18:03:50 +05:30
parent ec77696157
commit ea684fc9fe
21 changed files with 343 additions and 587 deletions

View File

@@ -3,18 +3,17 @@
import type { ColumnDef } from '@tanstack/react-table';
import { DataTable } from '@/components/data-table';
import type { UploadVideo } from '@/types';
import type { UploadListItem } from '@/types';
interface UploadTableProps {
columns: ColumnDef<UploadVideo>[];
uploads: UploadVideo[];
columns: ColumnDef<UploadListItem>[];
uploads: UploadListItem[];
isLoading: boolean;
skip: number;
limit: number;
total: number;
onPageChange: (skip: number) => void;
onLimitChange: (limit: number) => void;
onRowClick: (upload: UploadVideo) => void;
}
export function UploadTable({
@@ -26,7 +25,6 @@ export function UploadTable({
total,
onPageChange,
onLimitChange,
onRowClick,
}: UploadTableProps) {
return (
<DataTable
@@ -42,7 +40,6 @@ export function UploadTable({
onPageChange,
onLimitChange,
}}
onRowClick={onRowClick}
enableColumnControls={false}
minColumnSize={120}
/>