refactor(BillingCard): wrap action buttons in a button group for improved layout and accessibility
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m55s
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m55s
This commit is contained in:
@@ -168,29 +168,31 @@ export default function BillingCard({
|
||||
|
||||
{/* Правая часть: действия */}
|
||||
<div className="d-flex align-items-center gap-2 px-3 border-start">
|
||||
<button
|
||||
className="btn btn-outline-success"
|
||||
title="Записать платёж"
|
||||
onClick={(e) => { e.stopPropagation(); onAddPayment?.(item); }}
|
||||
>
|
||||
<IconCreditCard size={16} className="me-1" />
|
||||
Оплатить
|
||||
</button>
|
||||
<button
|
||||
className="btn btn-outline-secondary"
|
||||
title="Редактировать"
|
||||
onClick={(e) => { e.stopPropagation(); onEdit?.(item); }}
|
||||
>
|
||||
<IconEdit size={16} className="me-1" />
|
||||
Изменить
|
||||
</button>
|
||||
<button
|
||||
className="btn btn-outline-danger"
|
||||
title="Удалить"
|
||||
onClick={(e) => { e.stopPropagation(); onDelete?.(item); }}
|
||||
>
|
||||
<IconTrash size={16} />
|
||||
</button>
|
||||
<div className="btn-group btn-group-sm" role="group" aria-label="Действия с записью биллинга">
|
||||
<button
|
||||
className="btn btn-outline-success"
|
||||
title="Записать платёж"
|
||||
onClick={(e) => { e.stopPropagation(); onAddPayment?.(item); }}
|
||||
>
|
||||
<IconCreditCard size={16} className="me-1" />
|
||||
Оплатить
|
||||
</button>
|
||||
<button
|
||||
className="btn btn-outline-secondary"
|
||||
title="Редактировать"
|
||||
onClick={(e) => { e.stopPropagation(); onEdit?.(item); }}
|
||||
>
|
||||
<IconEdit size={16} className="me-1" />
|
||||
Изменить
|
||||
</button>
|
||||
<button
|
||||
className="btn btn-outline-danger"
|
||||
title="Удалить"
|
||||
onClick={(e) => { e.stopPropagation(); onDelete?.(item); }}
|
||||
>
|
||||
<IconTrash size={16} />
|
||||
</button>
|
||||
</div>
|
||||
<button
|
||||
className="btn btn-ghost-secondary btn-icon ms-1"
|
||||
onClick={(e) => { e.stopPropagation(); setExpanded(!expanded); }}
|
||||
|
||||
Reference in New Issue
Block a user