Skip to content

Commit

Permalink
Add ExpiringCFGRewardsBanner component to Header
Browse files Browse the repository at this point in the history
  • Loading branch information
JP Angelle committed Jan 18, 2024
1 parent d033bc4 commit 7d0ce81
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tinlake-ui/components/ExpiringCFGRewardsBanner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Anchor, Box, Card, Paragraph } from 'grommet'

export const ExpiringCFGRewardsBanner = () => (
<Card
margin={{ top: 'medium' }}
pad={{ top: 'xsmall', bottom: 'xsmall', left: 'medium', right: 'medium' }}
style={{
backgroundColor: '#fff5da',
}}
>
<Box>
<Paragraph>
Claim your rewards until 29/01/2024 3:01pm CET. After this day, users will not be able to claim their CFG
rewards. Check <Anchor href="/rewards" label="here" /> if there are still unclaimed rewards. Read more{' '}
<Anchor href="https://gov.centrifuge.io/t/cp81-unclaimed-tinlake-rewards/5885/4" label="here" />.
</Paragraph>
</Box>
</Card>
)
6 changes: 6 additions & 0 deletions tinlake-ui/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { useCFGRewards } from '../../utils/useCFGRewards'
import { usePool } from '../../utils/usePool'
import { usePortfolio } from '../../utils/usePortfolio'
import { ClientOnlyRender } from '../ClientOnlyRender'
import { ExpiringCFGRewardsBanner } from '../ExpiringCFGRewardsBanner'
import { ExploreCentrifugeBanner } from '../ExploreCentrifugeBanner'
import { RewardsBanner } from '../RewardsBanner'
import { useTinlake } from '../TinlakeProvider'
Expand Down Expand Up @@ -258,6 +259,11 @@ const Header: React.FC<Props> = (props: Props) => {
</MobileNav>
</HeaderBar>
{!props.hideRewardsBanner && <RewardsBanner />}
<Box justify="center" direction="row">
<Box width="xlarge">
<ExpiringCFGRewardsBanner />
</Box>
</Box>
<Box justify="center" direction="row">
<Box width="xlarge">
<ExploreCentrifugeBanner />
Expand Down

0 comments on commit 7d0ce81

Please sign in to comment.