-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add back buttons to several pages #217
Changes from 5 commits
39d589c
337183d
dec928c
ca8e5d1
a29586c
c4c862f
3e1a609
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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,8 +159,14 @@ export default function DemographicsSurvey() { | |
start the last part of the HIERR survey. | ||
</h2> | ||
<div className="flex flex-row items-center justify-center gap-5"> | ||
<Link href={{ pathname: "./address" }}> | ||
<button className="mb-1 mt-4 flex flex-row items-center justify-center gap-1 rounded-full bg-white/70 px-4 py-1 text-lg text-blue-darker no-underline shadow-xl transition ease-in-out hover:translate-y-1 hover:bg-white"> | ||
<IoMdArrowBack /> | ||
Go back to Address entry | ||
</button> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's say "Re-enter Address" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
</Link> | ||
<button | ||
className="mb-1 mt-4 rounded-full bg-white/80 px-6 py-2 text-blue-darker no-underline | ||
className="mb-1 mt-4 flex flex-row items-center justify-center rounded-full bg-white/80 px-6 py-2 text-blue-darker no-underline | ||
transition hover:translate-y-1 hover:bg-white hover:text-blue-darker " | ||
onClick={() => handleRetakeSurvey()} | ||
> | ||
|
@@ -168,7 +175,7 @@ export default function DemographicsSurvey() { | |
<Link href={{ pathname: "./polis" }}> | ||
<button | ||
className="mb-1 mt-4 flex flex-row items-center justify-center gap-1 rounded-full border-2 | ||
border-dashed border-lightGreen bg-yellowGreen px-6 py-1 text-right text-lg text-blue-darker no-underline shadow-xl transition ease-in-out | ||
border-dashed border-lightGreen bg-yellowGreen px-6 py-1 text-right text-lg text-blue-darker no-underline shadow-xl transition ease-in-out | ||
hover:translate-y-1 hover:bg-lightGreen" | ||
onClick={() => handleSubmit()} | ||
> | ||
|
@@ -212,6 +219,13 @@ export default function DemographicsSurvey() { | |
diversity of our community. This helps us make sure that we hear | ||
from as many different perspectives as possible during our process. | ||
</p> | ||
|
||
<Link href={{ pathname: "./address" }}> | ||
<button className="mb-1 mt-4 flex flex-row items-center justify-center gap-1 rounded-full bg-white/70 px-4 py-1 text-lg text-blue-darker no-underline shadow-xl transition ease-in-out hover:translate-y-1 hover:bg-white"> | ||
<IoMdArrowBack /> | ||
Go back to Address entry | ||
</button> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I missed this one. "Re-enter Address" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
</Link> | ||
</> | ||
)} | ||
</div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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,15 @@ const Polis: NextPage = () => { | |
</div> | ||
); | ||
})} | ||
<br /> | ||
<br /> | ||
<hr /> | ||
<Link href={{ pathname: "./survey" }}> | ||
<button className="mb-1 mt-4 flex flex-row items-center justify-center gap-1 rounded-full bg-white/70 px-4 py-1 text-lg text-blue-darker no-underline shadow-xl transition ease-in-out hover:translate-y-1 hover:bg-white"> | ||
<IoMdArrowBack /> | ||
Go back to Demographic Survey | ||
</button> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's say Retake Demographic Survey There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
> | ||
{" "} | ||
<IoMdArrowBack /> | ||
Return to polis survey selection | ||
</Link> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we're updating the names, this might be better as "Select New Polis Survey" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
</div> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change this to Home instead of Homepage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done