Skip to content

Commit

Permalink
Merge pull request #39 from daqhris/fix-attestation-page
Browse files Browse the repository at this point in the history
Fix attestation page
  • Loading branch information
daqhris authored Aug 11, 2024
2 parents 7c13e70 + 0b407c4 commit 6d07f80
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 255 deletions.
251 changes: 0 additions & 251 deletions app/attestation/[uid]/page.tsx

This file was deleted.

8 changes: 4 additions & 4 deletions pages/attestation/[uid].tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { GetStaticProps, GetStaticPaths } from 'next';
import { useRouter } from 'next/router';
import { GetStaticProps } from "next";
import { useRouter } from "next/router";

export const generateStaticParams = async () => {
// In a real-world scenario, you would fetch the list of UIDs from an API or database
// For this example, we'll generate a few static paths
const uids = ['1', '2', '3'];
const uids = ["1", "2", "3"];

return uids.map((uid) => ({
return uids.map(uid => ({
uid: uid,
}));
};
Expand Down
1 change: 1 addition & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useEffect, useState } from "react";
import IdentityVerification from "../components/IdentityVerification";
import OnchainAttestation from "../components/OnchainAttestation";
import EventAttendanceProof from "../components/EventAttendanceVerification";

const stages = ["identity", "attendance", "attestation", "complete"] as const;
type Stage = (typeof stages)[number];
Expand Down

0 comments on commit 6d07f80

Please sign in to comment.