Fix danger context menu option (#1523)

This commit is contained in:
Sam 2023-02-09 16:58:33 -05:00 committed by GitHub
parent b59e78e0cc
commit 62d776844c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ class ContextMenu {
Component = MenuComponents.ControlItem;
}
if (!props.id) props.id = `${props.label.replace(/^[^a-z]+|[^\w-]+/gi, "-")}`;
if (props.danger) props.color = "colorDanger";
if (props.danger) props.color = "danger";
if (props.onClick && !props.action) props.action = props.onClick;
props.extended = true;