Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Oct 7, 2023
1 parent 803dbfe commit 93e1673
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/POAPModal/POAPModal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import { FC, useState } from 'react';
import { FC, useEffect, useState } from 'react';
import { FiX } from 'react-icons/fi';

import { IYKRefResponse as IYKReferenceResponse } from '../../hooks/useIYKRef';
Expand All @@ -12,8 +12,13 @@ export const POAPModal: FC<{
metadata: POAPMetadata;
}> = ({ data, name, metadata }) => {
const [dismissed, setDismissed] = useState(false);
const [hasRendered, setHasRendered] = useState(false);

if (dismissed) return;
useEffect(() => {
setHasRendered(true);
}, [0]);

if (dismissed || !hasRendered) return;

return (
<div className="fixed bottom-0 inset-x-0 px-3 pb-4">
Expand Down

0 comments on commit 93e1673

Please sign in to comment.