From b8f662f0ec6649de81512df5d44a99968b4c4405 Mon Sep 17 00:00:00 2001 From: Adam Levin Date: Tue, 15 Jun 2021 13:42:36 -0400 Subject: [PATCH 01/27] TTAHUB-138: WIP Added custom survey button. --- frontend/src/pages/Landing/index.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/frontend/src/pages/Landing/index.js b/frontend/src/pages/Landing/index.js index ba6782387d..159a073e95 100644 --- a/frontend/src/pages/Landing/index.js +++ b/frontend/src/pages/Landing/index.js @@ -217,6 +217,8 @@ function Landing() { const ariaLiveContext = useContext(AriaLiveContext); + const [tpSurveyIsVisible, setTpSurveyIsVisible] = useState(false); + const makeReportCheckboxes = (reportsArr, checked) => ( reportsArr.reduce((obj, r) => ({ ...obj, [r.id]: checked }), {}) ); @@ -442,11 +444,23 @@ function Landing() { ); } + const displaySurveyModal = () => { + const modal = document.getElementsByClassName('fba-modal'); + if(modal) + { + console.log("found!!!", modal[0]); + modal[0].setAttribute('hidden','false'); + setTpSurveyIsVisible(!tpSurveyIsVisible); + } + } + return ( <> Landing +