yarn and member

This commit is contained in:
unknown
2025-03-04 18:37:15 +07:00
parent 19fa2febad
commit 52eee53002
6 changed files with 250 additions and 110 deletions

View File

@ -114,11 +114,15 @@ export function DataTable<TData, TValue>({
onClick={() => onUpdate(row.original)}>
Update
</Button>
<Button
className="bg-red-500 text-white px-2 py-1 rounded"
onClick={() => onDelete(row.original)}>
Delete
</Button>
{
onDelete ? (
<Button
className="bg-red-500 text-white px-2 py-1 rounded"
onClick={() => onDelete(row.original)}>
Delete
</Button>
) : ('')
}
</div>
</TableCell>
</TableRow>