Skip to content

Commit

Permalink
Update Modal State
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Aug 6, 2024
1 parent cdb1cec commit b34aba0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/styles/frensday24.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ html:has(.theme-frensday2024) {
@apply bg-[#E95666] hover:bg-[#d24a5a] active:bg-[#eb5d6e] font-bold text-[#FFF3E8];
}
.card-bg {
@apply bg-[#14032C];
@apply bg-[#FFDBCA];
}
.link {
@apply text-ens-light-blue;
Expand Down
2 changes: 1 addition & 1 deletion components/POAPModal/POAPModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const POAPModal: FC<{
</div>
</div>
<button
className="absolute right-4 text-xl opacity-50"
className="absolute right-4 text-xl opacity-50 p-2 z-20"
onClick={() => {
setDismissed(true);
}}
Expand Down
8 changes: 5 additions & 3 deletions hooks/usePOAPData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ export const usePOAPData = async (
poapEventId: number
): Promise<POAPMetadata | undefined> => {
try {
const request = await fetch(`${POAP_API_HOST}/metadata/${poapEventId}/1`);
const request = await fetch(
`${POAP_API_HOST}/metadata/${poapEventId}/1`
);

if (!request.ok) return;

return await request.json();
} catch (erorr) {
console.error('Error fetching POAP data', erorr);
} catch (error) {
console.error('Error fetching POAP data', error);
}
};

0 comments on commit b34aba0

Please sign in to comment.