Merged in chore/remove-unused-env-vars (pull request #2463)
chore: Remove unused env vars and feature toggles * Remove unused env vars and feature toggles Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -2,8 +2,6 @@ import { Suspense } from "react"
|
||||
|
||||
import { DynamicContentEnum } from "@scandic-hotels/trpc/types/dynamicContent"
|
||||
|
||||
import { env } from "@/env/server"
|
||||
|
||||
import HowItWorks from "@/components/Blocks/DynamicContent/HowItWorks"
|
||||
import LoyaltyLevels from "@/components/Blocks/DynamicContent/LoyaltyLevels"
|
||||
import Overview from "@/components/Blocks/DynamicContent/Overview"
|
||||
@@ -41,9 +39,7 @@ function DynamicContentBlocks(props: DynamicContentProps) {
|
||||
case DynamicContentEnum.Blocks.components.earn_and_burn:
|
||||
return <EarnAndBurn {...dynamic_content} />
|
||||
case DynamicContentEnum.Blocks.components.expiring_points:
|
||||
return env.NEW_SITE_LIVE_STATUS === "NOT_LIVE" ? null : (
|
||||
<ExpiringPoints {...dynamic_content} />
|
||||
)
|
||||
return <ExpiringPoints {...dynamic_content} />
|
||||
case DynamicContentEnum.Blocks.components.how_it_works:
|
||||
return <HowItWorks dynamic_content={dynamic_content} />
|
||||
case DynamicContentEnum.Blocks.components.jobylon_feed:
|
||||
|
||||
Reference in New Issue
Block a user