action panel: hide if no handlers
This commit is contained in:
parent
28bceab36d
commit
37e7a01ef2
@ -23,6 +23,9 @@ export default function FloatingActionPanel({
|
||||
onRepeat,
|
||||
onToggle,
|
||||
}: FloatingActionPanelProps) {
|
||||
// Если не переданы обработчики, скрываем панель
|
||||
if (!onCancel && !onConfirm && !onDelete && !onRepeat && !onToggle) return null;
|
||||
|
||||
// Если слот отменяется, показываем статус вместо кнопок
|
||||
if (isCancelling) {
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user