fix: hide redeem button with feature flag
This commit is contained in:
@@ -18,6 +18,7 @@ import type { CurrentRewardsClientProps } from "@/types/components/myPages/myPag
|
||||
|
||||
export default function ClientCurrentRewards({
|
||||
initialCurrentRewards,
|
||||
showRedeem,
|
||||
}: CurrentRewardsClientProps) {
|
||||
const lang = useLang()
|
||||
const { data, isFetching, fetchNextPage, hasNextPage, isLoading } =
|
||||
@@ -73,9 +74,11 @@ export default function ClientCurrentRewards({
|
||||
{reward.label}
|
||||
</Title>
|
||||
</div>
|
||||
<div className={styles.btnContainer}>
|
||||
<Redeem reward={reward} />
|
||||
</div>
|
||||
{showRedeem && (
|
||||
<div className={styles.btnContainer}>
|
||||
<Redeem reward={reward} />
|
||||
</div>
|
||||
)}
|
||||
</article>
|
||||
))}
|
||||
</Grids.Stackable>
|
||||
|
||||
Reference in New Issue
Block a user