From 04165fe4b3249f7d977df708fe1d802543e4cad8 Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Mon, 19 Jan 2026 18:16:04 +0000 Subject: [PATCH] Delint --- .../MSC4335UserLimitExceededDialog.tsx | 39 ++++++++++--------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/src/components/views/dialogs/MSC4335UserLimitExceededDialog.tsx b/src/components/views/dialogs/MSC4335UserLimitExceededDialog.tsx index 1217714610..ff48902ae7 100644 --- a/src/components/views/dialogs/MSC4335UserLimitExceededDialog.tsx +++ b/src/components/views/dialogs/MSC4335UserLimitExceededDialog.tsx @@ -26,11 +26,11 @@ interface IProps { export default function MSC4335UserLimitExceededDialog({ onFinished: _onFinished, title, error }: IProps): JSX.Element { function onFinished(success?: boolean): void { _onFinished?.(success); - }; + } function onClick(): void { // noop as using href - }; + } const matrixClient = useMatrixClientContext(); const isMatrixDotOrg = useMemo(() => matrixClient?.getDomain() === "matrix.org", [matrixClient]); @@ -38,19 +38,23 @@ export default function MSC4335UserLimitExceededDialog({ onFinished: _onFinished return (
{error.canUpgrade - ? (isMatrixDotOrg ? _t( - "msc4335_matrix_org_user_limit_exceeded|soft_limit", - ) : _t("msc4335_user_limit_exceeded|soft_limit")) - : (isMatrixDotOrg ? _t( - "msc4335_matrix_org_user_limit_exceeded|hard_limit", - ) : _t("msc4335_user_limit_exceeded|hard_limit")) - } + ? isMatrixDotOrg + ? _t("msc4335_matrix_org_user_limit_exceeded|soft_limit") + : _t("msc4335_user_limit_exceeded|soft_limit") + : isMatrixDotOrg + ? _t("msc4335_matrix_org_user_limit_exceeded|hard_limit") + : _t("msc4335_user_limit_exceeded|hard_limit")}
@@ -63,14 +67,13 @@ export default function MSC4335UserLimitExceededDialog({ onFinished: _onFinished data-testid="learn-more" onClick={onClick} > - {error.canUpgrade - ? (isMatrixDotOrg ? _t( - "msc4335_matrix_org_user_limit_exceeded|soft_limit_button", - ) : _t("msc4335_user_limit_exceeded|soft_limit_button")) - : (isMatrixDotOrg ? _t( - "msc4335_matrix_org_user_limit_exceeded|hard_limit_button", - ) : _t("msc4335_user_limit_exceeded|hard_limit_button")) - } + {error.canUpgrade + ? isMatrixDotOrg + ? _t("msc4335_matrix_org_user_limit_exceeded|soft_limit_button") + : _t("msc4335_user_limit_exceeded|soft_limit_button") + : isMatrixDotOrg + ? _t("msc4335_matrix_org_user_limit_exceeded|hard_limit_button") + : _t("msc4335_user_limit_exceeded|hard_limit_button")}