diff --git a/apps/OpenSign/src/components/Header.js b/apps/OpenSign/src/components/Header.js index 236120820..f1516d6ba 100644 --- a/apps/OpenSign/src/components/Header.js +++ b/apps/OpenSign/src/components/Header.js @@ -13,9 +13,9 @@ const Header = ({ showSidebar }) => { let applogo = localStorage.getItem("appLogo") || ""; let username = localStorage.getItem("username"); const image = localStorage.getItem("profileImg") || dp; - const [isOpen, setIsOpen] = useState(false); const [isSubscribe, setIsSubscribe] = useState(true); + const [isPro, setIsPro]= useState(false) const toggleDropdown = () => { setIsOpen(!isOpen); @@ -27,6 +27,7 @@ const Header = ({ showSidebar }) => { async function checkSubscription() { if (isEnableSubscription) { const getIsSubscribe = await checkIsSubscribed(); + setIsPro(getIsSubscribe) setIsSubscribe(getIsSubscribe); } } @@ -105,6 +106,11 @@ const Header = ({ showSidebar }) => { )} + {isPro && ( +
{yearlyVisible ? "Billed Yearly" : "Billed Monthly"}
-