From 55514651b6e97d88bd3326050d8afae963360880 Mon Sep 17 00:00:00 2001 From: Barry Low Date: Fri, 9 Nov 2018 12:15:29 -0800 Subject: [PATCH] Allow BannerTopBar to recieve string or array for title + text --- client/src/views/common/components/BannerTopBar.js | 4 ++-- client/src/views/email-verification/index.js | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/client/src/views/common/components/BannerTopBar.js b/client/src/views/common/components/BannerTopBar.js index 866cbfe2a..3c6b3505e 100644 --- a/client/src/views/common/components/BannerTopBar.js +++ b/client/src/views/common/components/BannerTopBar.js @@ -19,8 +19,8 @@ const BannerTopBar = ({ BannerTopBar.propTypes = { backgroundUrl: PropTypes.string, size: PropTypes.string, - title: PropTypes.string, - text: PropTypes.string + title: PropTypes.oneOfType([PropTypes.string, PropTypes.array]), + text: PropTypes.oneOfType([PropTypes.string, PropTypes.array]) } export default BannerTopBar diff --git a/client/src/views/email-verification/index.js b/client/src/views/email-verification/index.js index c4ca17709..889a88613 100644 --- a/client/src/views/email-verification/index.js +++ b/client/src/views/email-verification/index.js @@ -2,10 +2,11 @@ import React from 'react' import { BannerTopBar } from '../common' -const EmailSignupConfirm = () => { - return ( - - ) -} +export const EmailSignupConfirm = () => , 'Thank you for opting-in to recieve updates about the Advanced Algos project!']} + backgroundUrl='https://aacorporatesitedevelop.azurewebsites.net/img/photos/superalgos-platform.jpg' +/> export default EmailSignupConfirm