Skip to content

Commit

Permalink
feat: add v2 frontend UI design
Browse files Browse the repository at this point in the history
  • Loading branch information
kittybest committed Sep 16, 2024
1 parent 4759c30 commit 5170950
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/interface/src/components/BallotOverview.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Link from "next/link";
import { useRouter } from "next/router";

import { Heading } from "~/components/ui/Heading";
import { useBallot } from "~/contexts/Ballot";
Expand All @@ -15,7 +14,6 @@ interface IBallotOverviewProps {

export const BallotOverview = ({ roundId }: IBallotOverviewProps): JSX.Element => {
const { ballot } = useBallot();
const { asPath } = useRouter();

const roundState = useRoundState(roundId);

Expand All @@ -29,7 +27,7 @@ export const BallotOverview = ({ roundId }: IBallotOverviewProps): JSX.Element =
>
<div className="dark:bg-lightBlack my-8 flex-col items-center gap-2 rounded-lg bg-white p-5 uppercase shadow-lg dark:text-white">
<Heading as="h3" size="3xl">
{asPath.includes("ballot") ? "Summary" : "My Ballot"}
My Ballot
</Heading>

<AddedProjects roundId={roundId} />
Expand Down

0 comments on commit 5170950

Please sign in to comment.