From 270ef0d3c03d757dbd46aa17feff4e7a9e612428 Mon Sep 17 00:00:00 2001 From: Atul Tameshwari Date: Wed, 2 Sep 2026 14:35:05 +0530 Subject: [PATCH] refactor: update password strength banner implementation in AuthPasswordForm Replaced the custom banner implementation with the new Banner component from @makeplane/propel/components. This change simplifies the code and enhances consistency in the user interface by utilizing the standardized Banner component for displaying password strength messages during sign-up. --- .../account/auth-forms/password.tsx | 25 ++++++------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/apps/web/core/components/account/auth-forms/password.tsx b/apps/web/core/components/account/auth-forms/password.tsx index c98ffff341..5ed7305094 100644 --- a/apps/web/core/components/account/auth-forms/password.tsx +++ b/apps/web/core/components/account/auth-forms/password.tsx @@ -8,13 +8,13 @@ import { useEffect, useMemo, useRef, useState } from "react"; import { observer } from "mobx-react"; import Link from "next/link"; // icons -import { Eye, EyeOff, Info, XCircle } from "lucide-react"; +import { Eye, EyeOff, XCircle } from "lucide-react"; // plane imports +import { Banner } from "@makeplane/propel/components/banner"; import { Input, InputGroup } from "@makeplane/propel/components/input"; import { API_BASE_URL, E_PASSWORD_STRENGTH } from "@plane/constants"; import { useTranslation } from "@plane/i18n"; import { Button } from "@plane/propel/button"; -import { CloseIcon } from "@plane/propel/icons"; import { PasswordStrengthIndicator, Spinner } from "@plane/ui"; import { getPasswordStrength } from "@plane/utils"; // components @@ -128,21 +128,12 @@ export const AuthPasswordForm = observer(function AuthPasswordForm(props: Props) return ( <> {isBannerMessage && mode === EAuthModes.SIGN_UP && ( -
-
- -
-
- {t("auth.sign_up.errors.password.strength")} -
- -
+ setBannerMessage(false)} + /> )}