From ed581423aa59997381d8b941f239fe18c34152e3 Mon Sep 17 00:00:00 2001 From: William Grant Date: Sun, 19 Sep 2021 09:30:41 +1000 Subject: [PATCH] added email signup at the bottom of all blogposts --- components/EmailSignup.tsx | 8 +++++++- components/article/Article.tsx | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/components/EmailSignup.tsx b/components/EmailSignup.tsx index 782dea7..4009f5d 100644 --- a/components/EmailSignup.tsx +++ b/components/EmailSignup.tsx @@ -6,7 +6,12 @@ import { Contained } from './Contained'; import { Input } from './Input'; import { Button } from './Button'; -export default function EmailSignup(): ReactElement { +interface Props { + classes?: string; +} + +export default function EmailSignup(props: Props): ReactElement { + const { classes } = props; const router = useRouter(); const buttonRef = useRef(null); const setButtonText = (value: string) => { @@ -49,6 +54,7 @@ export default function EmailSignup(): ReactElement { 'tablet:w-4/5 tablet:mx-auto tablet:py-4 tablet:mt-6 tablet:mb-8', 'desktop:py-6', router.asPath !== '/get-involved' && 'tablet:w-full', + classes, )} >

+