fix: hide redeem button with feature flag

This commit is contained in:
Christian Andolf
2024-12-05 16:12:37 +01:00
parent 7be90facd0
commit 1a4dddb3fe
3 changed files with 12 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
import { env } from "@/env/server"
import { serverClient } from "@/lib/trpc/server"
import SectionContainer from "@/components/Section/Container"
@@ -25,7 +26,10 @@ export default async function CurrentRewardsBlock({
return (
<SectionContainer>
<SectionHeader title={title} link={link} preamble={subtitle} />
<ClientCurrentRewards initialCurrentRewards={initialCurrentRewards} />
<ClientCurrentRewards
initialCurrentRewards={initialCurrentRewards}
showRedeem={env.USE_NEW_REWARDS_ENDPOINT}
/>
<SectionLink link={link} variant="mobile" />
</SectionContainer>
)