diff --git a/packages/interface/src/components/BallotOverview.tsx b/packages/interface/src/components/BallotOverview.tsx index c6c5ddae..bac24c4b 100644 --- a/packages/interface/src/components/BallotOverview.tsx +++ b/packages/interface/src/components/BallotOverview.tsx @@ -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"; @@ -9,29 +8,34 @@ import { EAppState } from "~/utils/types"; import { AddedProjects } from "./AddedProjects"; import { VotingUsage } from "./VotingUsage"; -export const BallotOverview = (): JSX.Element => { +interface IBallotOverviewProps { + title?: string; +} + +export const BallotOverview = ({ title = undefined }: IBallotOverviewProps): JSX.Element => { const { ballot } = useBallot(); - const { asPath } = useRouter(); const appState = useAppState(); return ( - -
Loading...
} diff --git a/packages/interface/src/layouts/DefaultLayout.tsx b/packages/interface/src/layouts/DefaultLayout.tsx index 3f57d5bb..562d09f2 100644 --- a/packages/interface/src/layouts/DefaultLayout.tsx +++ b/packages/interface/src/layouts/DefaultLayout.tsx @@ -2,7 +2,6 @@ import { GatekeeperTrait } from "maci-cli/sdk"; import { type ReactNode, type PropsWithChildren, useMemo } from "react"; import { useAccount } from "wagmi"; -import { BallotOverview } from "~/components/BallotOverview"; import Header from "~/components/Header"; import { Info } from "~/components/Info"; import { Notice } from "~/components/ui/Notice"; @@ -102,9 +101,12 @@ export const LayoutWithSidebar = ({ ...props }: ILayoutProps): JSX.Element => { sidebar="left" sidebarComponent={