fix:multiple buttons (#21928)
This commit is contained in:
@@ -128,6 +128,7 @@ export default function OtherTeamListItem(props: Props) {
|
||||
color="destructive"
|
||||
type="button"
|
||||
StartIcon="trash"
|
||||
className="rounded-t-none"
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
}}>
|
||||
|
||||
@@ -112,6 +112,7 @@ function AttributeItem({
|
||||
type="button"
|
||||
StartIcon="trash-2"
|
||||
color="destructive"
|
||||
className="rounded-t-none"
|
||||
onClick={() => setAttributeToDelete(attribute)}>
|
||||
{t("delete")}
|
||||
</DropdownItem>
|
||||
|
||||
@@ -272,6 +272,7 @@ export default function TeamListItem(props: Props) {
|
||||
color="destructive"
|
||||
type="button"
|
||||
StartIcon="trash"
|
||||
className="rounded-t-none"
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
}}>
|
||||
|
||||
@@ -127,6 +127,7 @@ export function ScheduleListItem({
|
||||
color="destructive"
|
||||
StartIcon="trash"
|
||||
data-testid="delete-schedule"
|
||||
className="rounded-t-none"
|
||||
onClick={() => {
|
||||
if (!isDeletable) {
|
||||
showToast(t("requires_at_least_one_schedule"), "error");
|
||||
|
||||
Reference in New Issue
Block a user