diff --git a/package.json b/package.json index 4f433ab0a..5d6e48334 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "scroll.io", - "version": "5.0.78", + "version": "5.0.79", "private": false, "license": "MIT", "scripts": { diff --git a/src/constants/nft.ts b/src/constants/nft.ts index 31045c316..cf7cc47d2 100644 --- a/src/constants/nft.ts +++ b/src/constants/nft.ts @@ -17,6 +17,8 @@ export const EndDate = dayjs("2023-12-09T23:00:00Z").subtract(1, "ms") export const MintableDate = dayjs("2023-12-14T23:00:00Z") // 1702594800 +export const MintableEndDate = dayjs("2024-03-29T23:59:59Z") + export const ContractReleaseDate = dayjs("2023-12-14T11:30:42Z") export const NFT_RARITY_MAP = { diff --git a/src/pages/developer-nft/mint/home/ReadyToMint.tsx b/src/pages/developer-nft/mint/home/ReadyToMint.tsx index 66b77ee14..e64b836b9 100644 --- a/src/pages/developer-nft/mint/home/ReadyToMint.tsx +++ b/src/pages/developer-nft/mint/home/ReadyToMint.tsx @@ -1,4 +1,5 @@ import { useState } from "react" +import Countdown, { zeroPad } from "react-countdown" import ReactGA from "react-ga4" import { Box, Stack, Typography } from "@mui/material" @@ -10,7 +11,7 @@ import Button from "@/components/Button" import Link from "@/components/Link" import RequestWarning from "@/components/RequestWarning" import { ANNOUNCING_SCROLL_ORIGINS_NFT, ContractReleaseDate, DESIGNING_SCROLL_ORIGINS } from "@/constants" -import { CHAIN_ID, L2_NAME, SCROLL_ORIGINS_NFT } from "@/constants" +import { CHAIN_ID, L2_NAME, MintableEndDate, SCROLL_ORIGINS_NFT } from "@/constants" import { useRainbowContext } from "@/contexts/RainbowProvider" import useCheckViewport from "@/hooks/useCheckViewport" import useNFTStore from "@/stores/nftStore" @@ -65,8 +66,15 @@ const MintHome = props => { }) } - const renderAction = () => { + const renderAction = (end = false) => { if (chainId === CHAIN_ID.L2) { + if (end) { + return ( + + ) + } return (