Skip to content

Commit

Permalink
Adding logged in as to pol.is page (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
avenmia authored Jul 31, 2023
1 parent fa18696 commit c5b6ab6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/polissurvey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ import { useEffect, useState } from "react";
import { api } from "../utils/api";
import Link from "next/link";
import ProgressBar from "../components/ProgressBar";
import LoggedInAs from "./loggedinas";
import { useSession } from "next-auth/react";

const PolisSurvey: NextPage = () => {
const router = useRouter();
const { data: sessionData } = useSession();
const { surveyId } = router.query;
const userID = api.user.getId.useQuery()?.data?.id;

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

1 comment on commit c5b6ab6

@vercel
Copy link

@vercel vercel bot commented on c5b6ab6 Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

hierr – ./

hierr.vercel.app
hierr-git-main-codeforhawaii.vercel.app
hierr-codeforhawaii.vercel.app

Please sign in to comment.