Add danger background to dangerous menu items on hover (#3148)

closes #3105
This commit is contained in:
Tom Moor
2022-02-19 18:13:05 -08:00
committed by GitHub
parent 4b688e4ca0
commit c1df8c2162
12 changed files with 44 additions and 12 deletions

View File

@@ -157,6 +157,7 @@ function UserMenu({ user }: Props) {
{
type: "button",
title: `${t("Revoke invite")}`,
dangerous: true,
onClick: handleRevoke,
visible: user.isInvited,
},
@@ -169,6 +170,7 @@ function UserMenu({ user }: Props) {
{
type: "button",
title: `${t("Suspend account")}`,
dangerous: true,
onClick: handleSuspend,
visible: !user.isInvited && !user.isSuspended,
},