diff --git a/components/blocks/subNewsLetters.tsx b/components/blocks/subNewsLetters.tsx index 0983f5d4e7..7d73103143 100644 --- a/components/blocks/subNewsLetters.tsx +++ b/components/blocks/subNewsLetters.tsx @@ -1,7 +1,7 @@ -import React, { useState } from "react"; -import { Template } from "tinacms"; import axios from "axios"; +import React, { useState } from "react"; import { FaRegCheckCircle, FaSpinner } from "react-icons/fa"; +import { Template } from "tinacms"; /** * A component for subscribing to newsletters. @@ -15,10 +15,17 @@ const placeholder = { email: "Email", }; +const Default = { + headerText: + "Subscribe to the SSW Newsletter { const [email, setEmail] = useState(""); const [firstName, setFirstName] = useState(""); diff --git a/components/liveStream/liveStream.tsx b/components/liveStream/liveStream.tsx index 41695f5541..4c73b798ae 100644 --- a/components/liveStream/liveStream.tsx +++ b/components/liveStream/liveStream.tsx @@ -4,11 +4,11 @@ import Image from "next/image"; import { useRouter } from "next/router"; import Script from "next/script"; import { FC, useEffect, useState } from "react"; -import { FaEnvelope } from "react-icons/fa"; import { TfiAngleDown, TfiAngleUp } from "react-icons/tfi"; import { Tooltip } from "react-tooltip"; import layoutData from "../../content/global/index.json"; import { LiveStreamWidgetInfo, SpeakerInfo } from "../../services"; +import { SubNewsLetters } from "../blocks/subNewsLetters"; import ReactPlayer from "../reactPlayer/reactPlayer"; import { SocialIcons, SocialTypes } from "../util/socialIcons"; import { LiveStreamProps } from "./useLiveStreamProps"; @@ -342,28 +342,7 @@ export const LiveStream: FC = ({ isLive, event }) => { excludeMobile={[SocialTypes.phone]} /> - -
-

- Get notified about news & future events -

-
- - {/* TODO: Implement subscribe function */} - - - Subscribe - -
-
+