refactor(ticket): remove redundant View action from ticket table
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
import type { ReactNode } from 'react';
|
import type { ReactNode } from 'react';
|
||||||
import type { ColumnDef } from '@tanstack/react-table';
|
import type { ColumnDef } from '@tanstack/react-table';
|
||||||
import { Eye } from 'lucide-react';
|
|
||||||
|
|
||||||
import { DataTable } from '@/components/data-table';
|
import { DataTable } from '@/components/data-table';
|
||||||
import type { TicketListItem } from '@/types';
|
import type { TicketListItem } from '@/types';
|
||||||
@@ -41,13 +40,6 @@ export function TicketTable({
|
|||||||
toolbar={toolbar}
|
toolbar={toolbar}
|
||||||
emptyTitle="No tickets found."
|
emptyTitle="No tickets found."
|
||||||
emptyDescription="Ticket rows will appear after video processing creates them."
|
emptyDescription="Ticket rows will appear after video processing creates them."
|
||||||
actions={[
|
|
||||||
{
|
|
||||||
label: 'View',
|
|
||||||
icon: <Eye className="size-4" />,
|
|
||||||
onClick: onView,
|
|
||||||
},
|
|
||||||
]}
|
|
||||||
pagination={{
|
pagination={{
|
||||||
skip,
|
skip,
|
||||||
limit,
|
limit,
|
||||||
@@ -56,7 +48,6 @@ export function TicketTable({
|
|||||||
onLimitChange,
|
onLimitChange,
|
||||||
}}
|
}}
|
||||||
onRowClick={onView}
|
onRowClick={onView}
|
||||||
actionsSticky
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user