Skip to content

Commit

Permalink
Revert temporary giving season changes
Browse files Browse the repository at this point in the history
- Show Subscribe instead of Donate button again
- Remove call to action top banner
  • Loading branch information
rakyi committed Jan 6, 2025
1 parent 9e9dfc9 commit 349c35d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion site/SiteNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export enum Menu {

// 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 = true
const HAS_DONATION_FLAG = false

export const SiteNavigation = ({
baseUrl,
Expand Down
16 changes: 8 additions & 8 deletions site/SiteTools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@ import { FeedbackPrompt } from "./Feedback.js"
import { ScrollDirection, useScrollDirection } from "./hooks.js"
import { NewsletterSubscriptionContext } from "./newsletter.js"
import {
// NewsletterSubscription,
NewsletterSubscription,
NewsletterSubscriptionForm,
} from "./NewsletterSubscription.js"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome/index.js"
import { faHeart } from "@fortawesome/free-solid-svg-icons"
// import { FontAwesomeIcon } from "@fortawesome/react-fontawesome/index.js"
// import { faHeart } from "@fortawesome/free-solid-svg-icons"
// import { faHandshake } from "@fortawesome/free-solid-svg-icons"

const SITE_TOOLS_CLASS = "site-tools"

const SiteTools = () => {
const scrollDirection = useScrollDirection()
const isDonatePage = window.location.pathname === "/donate"
// const isDonatePage = window.location.pathname === "/donate"

return (
<div
className={cx("hide-wrapper", {
hide: scrollDirection === ScrollDirection.Down,
})}
>
{!isDonatePage && (
{/* {!isDonatePage && (
<a
className="prompt prompt-donate"
data-track-note="page_open_donate"
Expand All @@ -33,10 +33,10 @@ const SiteTools = () => {
<FontAwesomeIcon icon={faHeart} />
Donate
</a>
)}
{/* <NewsletterSubscription
)} */}
<NewsletterSubscription
context={NewsletterSubscriptionContext.Floating}
/> */}
/>
<FeedbackPrompt />
{/* <a className="prompt" data-track-note="page_open_jobs" href="/jobs">
<FontAwesomeIcon icon={faHandshake} /> Jobs
Expand Down

0 comments on commit 349c35d

Please sign in to comment.