Skip to content

Commit

Permalink
fixed raffles list design
Browse files Browse the repository at this point in the history
  • Loading branch information
alimaktabi committed Feb 15, 2024
1 parent 1d4fa92 commit e65893a
Show file tree
Hide file tree
Showing 2 changed files with 431 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/prizetap/components/RafflesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { getAssetUrl, shortenAddress } from "@/utils";

// import Styles from "@/components/containers/provider-dashboard/prize-tap/content.module.scss";
import { zeroAddress } from "viem";
import { useFastRefresh } from "@/utils/hooks/refresh";

export const Action = styled.div`
display: flex;
Expand Down Expand Up @@ -134,9 +135,9 @@ const RaffleCard: FC<{ raffle: Prize; isHighlighted?: boolean }> = ({
[userProfile, winnersEntry]
);

useEffect(() => {
useFastRefresh(() => {
setStarted(new Date(startAt) < new Date());
}, [new Date()]);
}, [startAt]);

// let tokenImgLink: string | undefined = tokenUri
// ? `https://ipfs.io/ipfs/QmYmSSQMHaKBByB3PcZeTWesBbp3QYJswMFZYdXs1H3rgA/${
Expand Down
Loading

0 comments on commit e65893a

Please sign in to comment.