Skip to content

Commit

Permalink
Merge pull request #36 from daqhris/rename-enrolment-to-enrollment
Browse files Browse the repository at this point in the history
Fix linting and formatting issues
  • Loading branch information
daqhris authored Aug 11, 2024
2 parents 6e26e83 + 75852bd commit 1f3b1fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions components/IdentityVerification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ const IdentityVerification: React.FC<{ onVerified: (address: string) => void }>
r="10"
stroke="currentColor"
strokeWidth="4"
></circle>
/>
<path
className="opacity-75"
fill="currentColor"
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
></path>
/>
</svg>
</span>
)}
Expand Down
11 changes: 5 additions & 6 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React, { useEffect, useState } from "react";
import { useLocalStorage } from "usehooks-ts";
import EventAttendanceProof from "../components/EventAttendanceProof";
import IdentityVerification from "../components/IdentityVerification";
import OnchainAttestation from "../components/OnchainAttestation";

Expand Down Expand Up @@ -34,10 +32,11 @@ const Home: React.FC = () => {
}, [completedStages, currentStage, setCurrentStage]);

const handleStageCompletion = (stage: Stage) => {
setCompletedStages((prev) => [...prev, stage]);
const newCompletedStages = [...completedStages, stage];
setCompletedStages(newCompletedStages);
localStorage.setItem('completedStages', JSON.stringify(newCompletedStages));
setCompletedStages(prev => {
const newCompletedStages = [...prev, stage];
localStorage.setItem('completedStages', JSON.stringify(newCompletedStages));
return newCompletedStages;
});

const currentIndex = stages.indexOf(stage);
if (currentIndex < stages.length - 1) {
Expand Down

0 comments on commit 1f3b1fc

Please sign in to comment.