Skip to content

Commit

Permalink
🔧 (donate) add setting for flag to fix eslint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mlbrgl committed Dec 1, 2023
1 parent b600618 commit 52cd668
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions site/SiteNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ export enum Menu {
Search = "search",
}

// Note: tranforming the flag from an env string to a boolean in
// clientSettings.ts is convoluted due to the two-pass SSR/Vite build process.
const HAS_DONATION_FLAG = false

export const SiteNavigation = ({
baseUrl,
hideDonationFlag,
Expand Down Expand Up @@ -220,15 +224,11 @@ export const SiteNavigation = ({
</a>
</div>
</div>
{/*
Uncomment below to show the "Giving season" flag on pages where it should not be hidden.
We probably want to make a setting for this if it becomes a yearly occurrence.
*/}
{/* {!hideDonationFlag && (
{HAS_DONATION_FLAG && !hideDonationFlag && (
<a href="/donate" className="site-navigation__giving">
Giving season
</a>
)} */}
)}
</div>
</div>
</>
Expand Down

0 comments on commit 52cd668

Please sign in to comment.