From 39d589c9ea89811726601ed6947f26723a5e7615 Mon Sep 17 00:00:00 2001 From: Taylor Raack Date: Mon, 19 Aug 2024 20:00:16 -1000 Subject: [PATCH 1/7] Add back buttons to several pages --- src/components/survey/demographicssurvey.tsx | 22 ++++++++++++++++++++ src/pages/polis.tsx | 13 ++++++++++++ src/pages/polissurvey.tsx | 2 ++ 3 files changed, 37 insertions(+) diff --git a/src/components/survey/demographicssurvey.tsx b/src/components/survey/demographicssurvey.tsx index ad2d6fe..800ff39 100644 --- a/src/components/survey/demographicssurvey.tsx +++ b/src/components/survey/demographicssurvey.tsx @@ -3,6 +3,7 @@ import SurveyQuestion from "./surveyquestion"; import { api } from "../../utils/api"; import Link from "next/link"; import { TiInputChecked } from "react-icons/ti"; +import { IoMdArrowBack } from "react-icons/io"; import ProgressBar from "../ProgressBar"; export interface SurveyData { @@ -158,6 +159,15 @@ export default function DemographicsSurvey() { start the last part of the HIERR survey.
+ + + + )}
diff --git a/src/pages/polis.tsx b/src/pages/polis.tsx index ee0d9e6..f882862 100644 --- a/src/pages/polis.tsx +++ b/src/pages/polis.tsx @@ -3,6 +3,7 @@ import ProgressBar from "../components/ProgressBar"; import Link from "next/link"; import { api } from "../utils/api"; import { useEffect, useState } from "react"; +import { IoMdArrowBack } from "react-icons/io"; interface PolisSurvey { id: string; @@ -55,6 +56,18 @@ const Polis: NextPage = () => { ); })} +
+
+
+ + + diff --git a/src/pages/polissurvey.tsx b/src/pages/polissurvey.tsx index 700dc75..9da15d4 100644 --- a/src/pages/polissurvey.tsx +++ b/src/pages/polissurvey.tsx @@ -6,6 +6,7 @@ import Link from "next/link"; import ProgressBar from "../components/ProgressBar"; import LoggedInAs from "./loggedinas"; import { useSession } from "next-auth/react"; +import { IoMdArrowBack } from "react-icons/io"; const PolisSurvey: NextPage = () => { const router = useRouter(); @@ -58,6 +59,7 @@ const PolisSurvey: NextPage = () => { className="rounded-full bg-white/90 px-10 py-2 text-blue-default no-underline transition hover:bg-white hover:text-blue-darker" > {" "} + Return to polis survey selection From 337183d133357f4669631568de0c067c9de2ec80 Mon Sep 17 00:00:00 2001 From: Taylor Raack Date: Sun, 25 Aug 2024 09:41:19 -1000 Subject: [PATCH 2/7] add back button to address page --- src/components/AddressSearch.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/components/AddressSearch.tsx b/src/components/AddressSearch.tsx index 6e90def..b477c77 100644 --- a/src/components/AddressSearch.tsx +++ b/src/components/AddressSearch.tsx @@ -15,6 +15,7 @@ import ProgressBar from "./ProgressBar"; import * as ELG from "esri-leaflet-geocoder"; import Link from "next/link"; import { GrLinkNext } from "react-icons/gr"; +import { IoMdArrowBack } from "react-icons/io"; import { api } from "../utils/api"; declare global { @@ -297,6 +298,14 @@ const AddressSearch: React.FC = () => { )}
+ + + diff --git a/src/pages/polis.tsx b/src/pages/polis.tsx index f882862..b626222 100644 --- a/src/pages/polis.tsx +++ b/src/pages/polis.tsx @@ -61,8 +61,10 @@ const Polis: NextPage = () => {
- diff --git a/src/components/survey/demographicssurvey.tsx b/src/components/survey/demographicssurvey.tsx index 2644757..0f3ff9e 100644 --- a/src/components/survey/demographicssurvey.tsx +++ b/src/components/survey/demographicssurvey.tsx @@ -160,12 +160,7 @@ export default function DemographicsSurvey() {
- @@ -180,7 +175,7 @@ export default function DemographicsSurvey() { diff --git a/src/pages/polis.tsx b/src/pages/polis.tsx index b626222..3dbde91 100644 --- a/src/pages/polis.tsx +++ b/src/pages/polis.tsx @@ -60,12 +60,7 @@ const Polis: NextPage = () => {

- diff --git a/src/pages/polissurvey.tsx b/src/pages/polissurvey.tsx index 9da15d4..8079313 100644 --- a/src/pages/polissurvey.tsx +++ b/src/pages/polissurvey.tsx @@ -54,10 +54,7 @@ const PolisSurvey: NextPage = () => { >
- + {" "} Return to polis survey selection From a29586cb642200fae8f8efa33d162f8351009418 Mon Sep 17 00:00:00 2001 From: Taylor Raack Date: Sun, 25 Aug 2024 10:56:47 -1000 Subject: [PATCH 5/7] run prettier --- src/pages/polissurvey.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/polissurvey.tsx b/src/pages/polissurvey.tsx index 8079313..9da15d4 100644 --- a/src/pages/polissurvey.tsx +++ b/src/pages/polissurvey.tsx @@ -54,7 +54,10 @@ const PolisSurvey: NextPage = () => { >
- + {" "} Return to polis survey selection From c4c862f5ceb9ade0748460b13884665c07338d74 Mon Sep 17 00:00:00 2001 From: Taylor Raack Date: Mon, 26 Aug 2024 18:17:19 -1000 Subject: [PATCH 6/7] updates for Mike --- src/components/AddressSearch.tsx | 2 +- src/components/survey/demographicssurvey.tsx | 2 +- src/pages/polis.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/AddressSearch.tsx b/src/components/AddressSearch.tsx index 946ac1e..114df82 100644 --- a/src/components/AddressSearch.tsx +++ b/src/components/AddressSearch.tsx @@ -301,7 +301,7 @@ const AddressSearch: React.FC = () => { diff --git a/src/components/survey/demographicssurvey.tsx b/src/components/survey/demographicssurvey.tsx index 0f3ff9e..3c5668b 100644 --- a/src/components/survey/demographicssurvey.tsx +++ b/src/components/survey/demographicssurvey.tsx @@ -162,7 +162,7 @@ export default function DemographicsSurvey() {
From 3e1a609e55f4d3487e41f52d6d34376161cac170 Mon Sep 17 00:00:00 2001 From: Taylor Raack Date: Tue, 27 Aug 2024 17:50:11 -1000 Subject: [PATCH 7/7] more updates for Mike --- src/components/survey/demographicssurvey.tsx | 2 +- src/pages/polissurvey.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/survey/demographicssurvey.tsx b/src/components/survey/demographicssurvey.tsx index 3c5668b..cd7fbe4 100644 --- a/src/components/survey/demographicssurvey.tsx +++ b/src/components/survey/demographicssurvey.tsx @@ -223,7 +223,7 @@ export default function DemographicsSurvey() { diff --git a/src/pages/polissurvey.tsx b/src/pages/polissurvey.tsx index 9da15d4..15ba296 100644 --- a/src/pages/polissurvey.tsx +++ b/src/pages/polissurvey.tsx @@ -60,7 +60,7 @@ const PolisSurvey: NextPage = () => { > {" "} - Return to polis survey selection + Select New Polis Survey