diff --git a/.env.defaults b/.env.defaults index 6620eb47..70e56de9 100644 --- a/.env.defaults +++ b/.env.defaults @@ -21,11 +21,14 @@ ALLOW_TENDERLY_RESET="false" # Analytics ANALYTICS_ENV=DEV POSTHOG_API_KEY= +# Lifecycle +IS_COMING_SOON="true" +IS_BETA_CLOSED="false" +IS_PORTAL_CLOSED="false" # Misc XP_HOSTING_BASE_URL="" # TBD SEASON_LENGTH_IN_WEEKS=8 CONTRACT_DEPLOYMENT_BLOCK_NUMBER=553443 SEASON_START_DATE="2023-10-26" SKIP_REACT_STRICT_MODE="false" -IS_COMING_SOON="true" -SHOW_WAITLIST="true" \ No newline at end of file +SHOW_WAITLIST="true" diff --git a/src/shared/constants/game.ts b/src/shared/constants/game.ts index 70877c57..8ef49149 100644 --- a/src/shared/constants/game.ts +++ b/src/shared/constants/game.ts @@ -1,4 +1,5 @@ -export const WEEKLY_XP_ALLOCATION = 1_000_000 +export const WEEKLY_XP_ALLOCATION = + process.env.IS_BETA_CLOSED === "true" ? 0 : 1_000_000 export const WEEKLY_XP_BOOST = 1.2 export const MOBILE_BREAKPOINT = 854 export const TABLET_BREAKPOINT = 1152 diff --git a/src/ui/Island/RealmPanel/RealmDetailsPanel/RealmDetailsContent.tsx b/src/ui/Island/RealmPanel/RealmDetailsPanel/RealmDetailsContent.tsx index 81b6dc6f..d318c45b 100644 --- a/src/ui/Island/RealmPanel/RealmDetailsPanel/RealmDetailsContent.tsx +++ b/src/ui/Island/RealmPanel/RealmDetailsPanel/RealmDetailsContent.tsx @@ -31,13 +31,22 @@ export default function RealmDetailsContent({ return ( - + {process.env.IS_BETA_CLOSED === "true" || ( + + )} - - + {process.env.IS_BETA_CLOSED === "true" || ( + <> + + + + )} ) } diff --git a/src/ui/Island/RealmPanel/RealmDetailsPanel/RealmDetailsHeader.tsx b/src/ui/Island/RealmPanel/RealmDetailsPanel/RealmDetailsHeader.tsx index 873b2658..82f97e1b 100644 --- a/src/ui/Island/RealmPanel/RealmDetailsPanel/RealmDetailsHeader.tsx +++ b/src/ui/Island/RealmPanel/RealmDetailsPanel/RealmDetailsHeader.tsx @@ -31,7 +31,9 @@ export default function RealmDetailsHeader({

{realm?.name} Realm

- +
@@ -49,7 +51,10 @@ export default function RealmDetailsHeader({
This weeks reward pool -
+
Claim XP + {process.env.IS_BETA_CLOSED === "true" && ( +
+ + Claiming will be live till Dec 18 2023 + +
+ )}
- + {process.env.IS_BETA_CLOSED === "true" || ( + + )}
Week {seasonWeek}{" "} @@ -37,7 +39,12 @@ export default function RealmPanelCountdown() { / {seasonDuration}
-
{timeRemaining}
+ +
+ {process.env.IS_BETA_CLOSED === "true" + ? "Beta is over, claim xp till Dec 18 2023" + : timeRemaining} +