improve(dashboard): make actions sticky on the right for data table

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-10-15 22:02:35 +02:00
parent b693d0ba2b
commit 857a2b01d3
5 changed files with 55 additions and 19 deletions

View File

@@ -3,6 +3,7 @@ import type { ColumnDef } from '@tanstack/react-table';
import type { IServiceProject } from '@openpanel/db';
import { ACTIONS } from '../data-table';
import { ProjectActions } from './project-actions';
export type Project = IServiceProject;
@@ -20,7 +21,7 @@ export const columns: ColumnDef<IServiceProject>[] = [
},
},
{
id: 'actions',
id: ACTIONS,
header: 'Actions',
cell: ({ row }) => <ProjectActions {...row.original} />,
},