Skip to content

Commit

Permalink
Merge pull request #238 from InternAcademy/dev
Browse files Browse the repository at this point in the history
Button Fix
  • Loading branch information
dpS1lence authored Sep 13, 2024
2 parents 676c927 + f101cd9 commit c15e589
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/client/CookingAppReact/src/components/userMenu/UserMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ const UserMenu = ({ isOpen, toggleDropDown }) => {
} hover:rounded`}
onClick={() => {
dispatch(uiActions.toggleDropdown());
if (role === "Premium") {
navigate("/subscription/manage");
} else {
navigate("/subscription");
}
navigate("/store");
}}
title="Subscription"
>
Expand Down Expand Up @@ -91,13 +87,13 @@ const UserMenu = ({ isOpen, toggleDropDown }) => {
<span>{t("RulesNPolicies")}</span>
</div>
</div>
<hr
className={`w-full mt-2 mb-2 border-primaryBorder`}
/>
<div className={`flex items-center w-full cursor-pointer p-2
<hr className={`w-full mt-2 mb-2 border-primaryBorder`} />
<div
className={`flex items-center w-full cursor-pointer p-2
${
isDarkTheme ? "hover:bg-[#424242]" : "hover:bg-base"
} hover:rounded`}>
} hover:rounded`}
>
<SignOutButton />
</div>
</div>
Expand Down

0 comments on commit c15e589

Please sign in to comment.