diff --git a/packages/nextjs/.env.example b/packages/nextjs/.env.example index d816775..300c253 100644 --- a/packages/nextjs/.env.example +++ b/packages/nextjs/.env.example @@ -12,3 +12,4 @@ NEXT_PUBLIC_ALCHEMY_API_KEY= NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID= NEXT_PUBLIC_PINATA_JWT= +NEXT_PUBLIC_PINATA_GATEWAY= diff --git a/packages/nextjs/app/admin/page.tsx b/packages/nextjs/app/admin/page.tsx index a7f0c7e..6e9c18c 100644 --- a/packages/nextjs/app/admin/page.tsx +++ b/packages/nextjs/app/admin/page.tsx @@ -1,6 +1,7 @@ "use client"; import { useEffect, useState } from "react"; +import Link from "next/link"; import { redirect } from "next/navigation"; import CreatePollModal from "./_components/CreatePollModal"; import PollStatusModal from "./_components/PollStatusModal"; @@ -52,7 +53,7 @@ export default function AdminPage() {
- {polls.map((poll: any) => ( + {polls.map(poll => (Rank | +Candidate | +Votes | +
---|---|---|
{i + 1} | +{r.candidate} | +{r.votes} | +