From afe18d54de39b775edbf355b369d3a0f00146d3a Mon Sep 17 00:00:00 2001 From: Sanne de Vries Date: Fri, 9 Jun 2023 11:35:36 +0200 Subject: [PATCH] Added email icon to signup form success page Refs https://www.notion.so/ghost/Embed-testing-0193905e46d449b5ad865f7364176814?pvs=4#de29f9cc1a364a12a4a0eeebef68f3a4 --- ghost/signup-form/assets/icons/email.svg | 1 + ghost/signup-form/src/components/pages/SuccessPage.tsx | 4 +--- ghost/signup-form/src/components/pages/SuccessView.tsx | 7 +++---- 3 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 ghost/signup-form/assets/icons/email.svg diff --git a/ghost/signup-form/assets/icons/email.svg b/ghost/signup-form/assets/icons/email.svg new file mode 100644 index 0000000000..f09e4ffb74 --- /dev/null +++ b/ghost/signup-form/assets/icons/email.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ghost/signup-form/src/components/pages/SuccessPage.tsx b/ghost/signup-form/src/components/pages/SuccessPage.tsx index 0b03b3d144..39a7b93122 100644 --- a/ghost/signup-form/src/components/pages/SuccessPage.tsx +++ b/ghost/signup-form/src/components/pages/SuccessPage.tsx @@ -12,7 +12,5 @@ export const SuccessPage: React.FC = ({email}) => { return ; + textColor={options.textColor} />; }; diff --git a/ghost/signup-form/src/components/pages/SuccessView.tsx b/ghost/signup-form/src/components/pages/SuccessView.tsx index e14951729d..84e4e9fc08 100644 --- a/ghost/signup-form/src/components/pages/SuccessView.tsx +++ b/ghost/signup-form/src/components/pages/SuccessView.tsx @@ -1,13 +1,12 @@ import React from 'react'; +import {ReactComponent as EmailIcon} from '../../../assets/icons/email.svg'; import {useAppContext} from '../../AppContext'; export const SuccessView: React.FC<{ email: string; - title?: string; - icon?: string; backgroundColor?: string; textColor?: string; -}> = ({title, icon, backgroundColor, textColor}) => { +}> = ({backgroundColor, textColor}) => { const {t} = useAppContext(); return (
- {icon && {title}} +

{t(`Now check your email!`)}

{t(`To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!`)}