yarn and member
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user