Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert temporary giving season changes #4385

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion site/SiteNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { Menu, SiteNavigationStatic } from "./SiteConstants.js"

// 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: 9 additions & 7 deletions site/SiteTools.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
import cx from "classnames"
import { FeedbackPrompt } from "./Feedback.js"
import { ScrollDirection, useScrollDirection } from "./hooks.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"
import { NewsletterSubscriptionContext } from "./newsletter.js"
import { NewsletterSubscription } from "./NewsletterSubscription.js"

export const SITE_TOOLS_CLASS = "site-tools"

export default function 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 @@ -26,10 +28,10 @@ export default function 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
Loading