style: auto-fix lint and format
This commit is contained in:
1 parent
39a1a3695e
commit
96bb33299e
1 file changed
+8
-1
+8
-1
@@ -68,7 +68,14 @@ export const DisableUserButton = ({ user, isSelf = false }: DisableUserButtonPro
|
|||||||
const getButtonColor = () => (isDisabled ? "green" : "yellow");
|
const getButtonColor = () => (isDisabled ? "green" : "yellow");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tooltip label={isSelf ? t("user.action.disableSelf.disabled", { defaultValue: "Cannot disable your own account" }) : getTooltipLabel()} position="top">
|
<Tooltip
|
||||||
|
label={
|
||||||
|
isSelf
|
||||||
|
? t("user.action.disableSelf.disabled", { defaultValue: "Cannot disable your own account" })
|
||||||
|
: getTooltipLabel()
|
||||||
|
}
|
||||||
|
position="top"
|
||||||
|
>
|
||||||
<Button
|
<Button
|
||||||
onClick={handleToggle}
|
onClick={handleToggle}
|
||||||
loading={isPending || changeDisabledMutation.isPending}
|
loading={isPending || changeDisabledMutation.isPending}
|
||||||
|
|||||||
Reference in new issue
Block a user