Skip to content

Commit c5b6ab6

Browse files
authored
Adding logged in as to pol.is page (#144)
1 parent fa18696 commit c5b6ab6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pages/polissurvey.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ import { useEffect, useState } from "react";
44
import { api } from "../utils/api";
55
import Link from "next/link";
66
import ProgressBar from "../components/ProgressBar";
7+
import LoggedInAs from "./loggedinas";
8+
import { useSession } from "next-auth/react";
79

810
const PolisSurvey: NextPage = () => {
911
const router = useRouter();
12+
const { data: sessionData } = useSession();
1013
const { surveyId } = router.query;
1114
const userID = api.user.getId.useQuery()?.data?.id;
1215

@@ -38,6 +41,7 @@ const PolisSurvey: NextPage = () => {
3841
Step 6: Fill out the Pol.is survey
3942
</h1>
4043
<ProgressBar completed={100} />
44+
<LoggedInAs email={sessionData?.user.email} />
4145
<div
4246
id="polis-container"
4347
className="mx-auto mt-8 h-[80%] w-[80%] overflow-y-scroll"

0 commit comments

Comments
 (0)