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. 12
      src/components/Componentes/page-header.tsx

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

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

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

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

Loading…
Cancel
Save