refactor: replace 'size' prop with 'className' for button styling consistency in MonitorCard
This commit is contained in:
@@ -338,15 +338,14 @@ function MonitorCard({
|
|||||||
<Button
|
<Button
|
||||||
onClick={(e: React.MouseEvent) => { e.stopPropagation(); onEdit() }}
|
onClick={(e: React.MouseEvent) => { e.stopPropagation(); onEdit() }}
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
size="sm"
|
className="text-sm"
|
||||||
>
|
>
|
||||||
Edit
|
Edit
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
onClick={(e: React.MouseEvent) => { e.stopPropagation(); onDelete() }}
|
onClick={(e: React.MouseEvent) => { e.stopPropagation(); onDelete() }}
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
size="sm"
|
className="text-sm text-red-600 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20"
|
||||||
className="text-red-600 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20"
|
|
||||||
>
|
>
|
||||||
Delete
|
Delete
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user