Browse Source

fix(header): restrict subscription diamond button exclusively to male users

master
mortezaei 2 weeks ago
parent
commit
6c400af207
  1. 4
      src/components/Componentes/navigation-button.tsx
  2. 2
      src/components/Componentes/page-header.tsx

4
src/components/Componentes/navigation-button.tsx

@ -307,6 +307,10 @@ export function NavigationButton({
]
: undefined);
if (icon === "subscription" && isFemale) {
return null;
}
if (icon === "more") {
return (
<div className="relative inline-block text-left" ref={dropdownRef}>

2
src/components/Componentes/page-header.tsx

@ -96,11 +96,13 @@ export function PageHeader({
/>
) : (
<div className="flex items-center gap-2 shrink-0">
{isMale && (
<NavigationButton
icon="subscription"
profile={profile}
iconLabel={(t as Record<string, string>)["Subscription Status"] || (t as Record<string, string>)["Subscription"] || "Subscription"}
/>
)}
<NavigationButton
icon="more"
profile={profile}

Loading…
Cancel
Save