【发布时间】:2022-02-15 17:52:14
【问题描述】:
if (isApplied && moreCount === 0 && route !== cartUrl && bagCouponActive) {
return (
<StickyBottomFooter bottom={bottomPosition}>
<Confetti fire />
<FlexBox
spacing="py24 m-py12"
align="center"
justify="center"
position="row"
fullWidth
style={{
background: 'var(--secondary-green)',
height: isMobile ? '40px' : '56px',
}}
>
<Text size="16_24" mobileSize="14" thickness="medium" color="white">
Congrats! you’ve unlocked '{couponCode}' offer
</Text>
我正在使用 Confetti 来展示这一点,但每次刷新时都会出现这些只需要在主页中调用一次
【问题讨论】:
标签: javascript css reactjs