From 38118986a333d9f5b1c8bbaab3973f0b4486dcfd Mon Sep 17 00:00:00 2001 From: RaktimaNXG Date: Fri, 16 Aug 2024 14:13:51 +0530 Subject: [PATCH] feat: add a header strip to display an announcement about the public profile feature launch --- apps/OpenSign/src/components/Header.js | 237 +++++++++++++------------ 1 file changed, 126 insertions(+), 111 deletions(-) diff --git a/apps/OpenSign/src/components/Header.js b/apps/OpenSign/src/components/Header.js index 86e4ccdca..5bc4c360b 100644 --- a/apps/OpenSign/src/components/Header.js +++ b/apps/OpenSign/src/components/Header.js @@ -109,126 +109,141 @@ const Header = ({ showSidebar }) => { } }; return ( -
-
- -
-
-
- img -
-
-
- {!isSubscribe && ( -
- -
- )} - {isTeam.isValid && !validplan[isTeam.plan] && ( -
- {t("pro")} -
- )} - {validplan[isTeam.plan] && ( -
- {t("team")} -
- )} -
- -
- {width >= 768 && ( -
+ {isEnableSubscription && ( +
+ New Feature: Public Profiles are now live! Create and share public + templates with ease— + navigate("/profile")} > + {" "} + Setup Now. + +
+ )} +
+
+ +
+
+
img
- )} - {width >= 768 && ( -
- {username && username} +
+
+ {!isSubscribe && ( +
+ +
+ )} + {isTeam.isValid && !validplan[isTeam.plan] && ( +
+ {t("pro")} +
+ )} + {validplan[isTeam.plan] && ( +
+ {t("team")} +
+ )} +
+
- )} -
-
- = 768 && ( +
+ img +
+ )} + {width >= 768 && ( +
+ {username && username} +
+ )} +
+
+ className="op-btn op-btn-ghost op-btn-xs w-[10px] h-[20px] hover:bg-transparent" + > + +
+
    +
  • openInNewTab("https://docs.opensignlabs.com")}> + + {t("docs")} + +
  • +
  • { + setIsOpen(false); + navigate("/profile"); + }} + > + + {t("profile")} + +
  • +
  • { + setIsOpen(false); + navigate("/changepassword"); + }} + > + + {t("change-password")} + +
  • +
  • { + handleConsoleRedirect(); + }} + > + + Console + +
  • +
  • + + {" "} + {t("log-out")} + +
  • +
-
    -
  • openInNewTab("https://docs.opensignlabs.com")}> - - {t("docs")} - -
  • -
  • { - setIsOpen(false); - navigate("/profile"); - }} - > - - {t("profile")} - -
  • -
  • { - setIsOpen(false); - navigate("/changepassword"); - }} - > - - {t("change-password")} - -
  • -
  • { - handleConsoleRedirect(); - }} - > - - Console - -
  • -
  • - - {" "} - {t("log-out")} - -
  • -