Skip to content

Commit c3607a9

Browse files
authored
Merge pull request #1885 from Mephistic/fix-form
Update Newsletter Link
2 parents c2e6047 + 3974f3e commit c3607a9

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

components/Footer/Footer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import CustomDropdown, {
1111
CustomDropdownProps
1212
} from "components/Footer/CustomFooterDropdown"
1313
import { FooterContainer } from "./FooterContainer"
14+
import { NEWSLETTER_SIGNUP_URL } from "components/common"
1415

1516
export type PageFooterProps = {
1617
children?: any
@@ -282,7 +283,7 @@ const PageFooter = (props: PageFooterProps) => {
282283
{t("legal.disclaimer")}
283284
{" - "}
284285
<a
285-
href="https://cdn.forms-content.sg-form.com/d049f1ab-b547-11ee-9605-72ceb6b6e337"
286+
href={NEWSLETTER_SIGNUP_URL}
286287
style={{ color: "white" }}
287288
target="_blank"
288289
rel="noopener noreferrer"

components/HeroHeader/HeroHeader.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import ScrollTrackingItem from "../ScrollTrackEffect/ScrollTrackerItem"
66
import styles from "./HeroHeader.module.css"
77
import { useTranslation } from "next-i18next"
88
import { capitalize } from "lodash"
9+
import { NEWSLETTER_SIGNUP_URL, TRAINING_CALENDAR_URL } from "../common"
910

1011
const HeroHeader = ({ authenticated }) => {
1112
const { t } = useTranslation("common")
@@ -59,7 +60,7 @@ const HeroHeader = ({ authenticated }) => {
5960
<p>
6061
{t("newcomer")}{" "}
6162
<a
62-
href="https://calendar.google.com/calendar/embed?src=998f62323926f0b0076e7f578d3ca72b1bc94c4efa2f24be57b11f52b1b88595%40group.calendar.google.com&ctz=America%2FNew_York"
63+
href={TRAINING_CALENDAR_URL}
6364
style={{ color: "white" }}
6465
target="_blank"
6566
rel="noopener noreferrer"
@@ -70,7 +71,7 @@ const HeroHeader = ({ authenticated }) => {
7071
</p>
7172
<p>
7273
<a
73-
href="https://cdn.forms-content.sg-form.com/d049f1ab-b547-11ee-9605-72ceb6b6e337"
74+
href={NEWSLETTER_SIGNUP_URL}
7475
style={{ color: "white" }}
7576
target="_blank"
7677
rel="noopener noreferrer"

components/auth/TermsOfServiceModal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Button, Col, Modal, Row, Stack } from "../bootstrap"
33
import { External } from "components/links"
44
import { NavLink } from "../Navlink"
55
import { useTranslation } from "next-i18next"
6+
import { NEWSLETTER_SIGNUP_URL } from "components/common"
67

78
export default function TermsOfServiceModal({
89
show,
@@ -80,7 +81,7 @@ export default function TermsOfServiceModal({
8081
</Row>
8182
<Row>
8283
<NavLink
83-
href="https://cdn.forms-content.sg-form.com/d049f1ab-b547-11ee-9605-72ceb6b6e337"
84+
href={NEWSLETTER_SIGNUP_URL}
8485
other={{
8586
className: `text-center fs-5 mt-4 text-secondary`,
8687
target: "_blank",

components/common.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export const NEWSLETTER_SIGNUP_URL =
2+
"https://cdn.forms-content.sg-form.com/66e4c174-72e5-11f0-847b-fe4d8dd139cf"
3+
export const TRAINING_CALENDAR_URL =
4+
"https://calendar.google.com/calendar/embed?src=998f62323926f0b0076e7f578d3ca72b1bc94c4efa2f24be57b11f52b1b88595%40group.calendar.google.com&ctz=America%2FNew_York"

0 commit comments

Comments
 (0)