Skip to content

Commit

Permalink
Fix ESLint warnings and errors
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] committed Aug 11, 2024
1 parent dd404cb commit 95fb0e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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
4 changes: 2 additions & 2 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ const Home: React.FC = () => {
const handleStageCompletion = (stage: Stage) => {
setCompletedStages(prev => {
const newCompletedStages = [...prev, stage];
localStorage.setItem('completedStages', JSON.stringify(newCompletedStages));
localStorage.setItem("completedStages", JSON.stringify(newCompletedStages));
return newCompletedStages;
});

const currentIndex = stages.indexOf(stage);
if (currentIndex < stages.length - 1) {
const nextStage = stages[currentIndex + 1];
setCurrentStage(nextStage);
localStorage.setItem('currentStage', nextStage);
localStorage.setItem("currentStage", nextStage);
}
};

Expand Down

0 comments on commit 95fb0e6

Please sign in to comment.