From 8ad255c01b255b086e1b65555f6994a0f9dd90c2 Mon Sep 17 00:00:00 2001 From: RujitRaval Date: Thu, 23 Apr 2020 22:15:29 -0400 Subject: [PATCH] Add the logic for rendering the thank you page for Oaklang --- src/App.js | 8 ++++++++ src/ThankYou.js | 10 ++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index df8cf8b7f..02060634e 100644 --- a/src/App.js +++ b/src/App.js @@ -65,6 +65,7 @@ class App extends React.Component { thankYou: , congrats: ; } + // Oakland Survey ID = 2 + if(this.props.building.data.surveyId === 2) { + this.state.pages.thankYou = ; + } + // Milwaukee Survey ID = 3 if(this.props.building.data.surveyId === 3) { this.state.pages.thankYou = } - if (this.props.milwaukee === true) { + if (this.props.oakland === true ||this.props.milwaukee === true) { + const email = this.props.milwaukee === true ? + "welcome.milwaukee@blocpower.io": + "welcome.oakland@blocpower.io" + const emailURL = this.props.milwaukee === true ? + "mailto:welcome.milwaukee@blocpower.io": + "mailto:welcome.oakland@blocpower.io" data =
Looks like we need more information to see what energy saving projects are a good fit for your building.
We’ll send you an email to find a time to chat or you can call us at {process.env.REACT_APP_BLOCPOWER_CONTACT} - or email us at welcome.milwaukee@blocpower.io. + or email us at {email}.
} -- GitLab