Skip to content

Commit

Permalink
feat: include text under rewards leaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
antomor committed Dec 11, 2024
1 parent c9ec433 commit 733aa2a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 14 deletions.
14 changes: 11 additions & 3 deletions src/app/collective-rewards/leaderboard/BuilderLeaderBoard.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { CycleContextProvider } from '@/app/collective-rewards/metrics'
import { Button } from '@/components/Button'
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@/components/Collapsible'
import { HeaderTitle } from '@/components/Typography'
import { HeaderTitle, Paragraph } from '@/components/Typography'
import { BuildersLeaderBoardContent } from '@/app/collective-rewards/leaderboard'
import { useRouter } from 'next/navigation'
import { useCanManageAllocations } from '@/app/collective-rewards/allocations/hooks'
import { CRWhitepaperLink } from '../shared'

export const BuildersLeaderBoard = () => {
const router = useRouter()
Expand All @@ -17,9 +18,16 @@ export const BuildersLeaderBoard = () => {
return (
<>
<Collapsible defaultOpen>
<CollapsibleTrigger>
<CollapsibleTrigger className="self-start pt-1">
<div className="flex items-center justify-between w-full">
<HeaderTitle className="">Rewards leaderboard</HeaderTitle>
<div className="flex flex-col justify-center items-start gap-2 flex-1">
<HeaderTitle className="">Rewards leaderboard</HeaderTitle>
<Paragraph className="text-[14px] text-white font-rootstock-sans">
Select one or more Builders you want to back. You retain full ownership and access to your
stRIF while earning a portion of their rewards. For more information check the{' '}
<CRWhitepaperLink />.
</Paragraph>
</div>
<Button variant="primary" onClick={onManageAllocations} disabled={!canManageAllocations}>
Manage Allocations
</Button>
Expand Down
13 changes: 2 additions & 11 deletions src/app/collective-rewards/rewards/MyRewards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,13 @@ import { useRouter } from 'next/navigation'
import { Link } from '@/components/Link'
import { Builder } from '../types'
import { useCanManageAllocations } from '@/app/collective-rewards/allocations/hooks'
import { CRWhitepaperLink } from '../shared'

const SubText = () => {
return (
<>
Track and claim the rewards you earn from Collective Rewards. For more information check the{' '}
<Link
className="text-[#E56B1A]"
href={
'https://file.notion.so/f/f/5c274ed5-ccaa-43f3-9086-7ff7fed02299/2d5ab5ff-a08b-428f-b8ef-1fb642dcaf42/20241128_RootstockCollective_Rewards_Whitepaper_V1_0.pdf?table=block&id=14c1ca6b-0b02-8093-beba-c642396e4e09&spaceId=5c274ed5-ccaa-43f3-9086-7ff7fed02299&expirationTimestamp=1733918400000&signature=0fXpO_3zOse-KRipYdYjHuOFRMqBcbKy5gHR2T5yyZQ&downloadName=20241128_RootstockCollective_Rewards_Whitepaper_V1_0.pdf'
}
target="_blank"
rel="noopener noreferrer"
>
Whitepaper
</Link>{' '}
.
<CRWhitepaperLink />.
</>
)
}
Expand Down
15 changes: 15 additions & 0 deletions src/app/collective-rewards/shared/components/CRWhitepaperLink.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Link } from '@/components/Link'
import { FC } from 'react'

export const CRWhitepaperLink: FC = () => (
<Link
className="text-[#E56B1A]"
href={
'https://file.notion.so/f/f/5c274ed5-ccaa-43f3-9086-7ff7fed02299/2d5ab5ff-a08b-428f-b8ef-1fb642dcaf42/20241128_RootstockCollective_Rewards_Whitepaper_V1_0.pdf?table=block&id=14c1ca6b-0b02-8093-beba-c642396e4e09&spaceId=5c274ed5-ccaa-43f3-9086-7ff7fed02299&expirationTimestamp=1733918400000&signature=0fXpO_3zOse-KRipYdYjHuOFRMqBcbKy5gHR2T5yyZQ&downloadName=20241128_RootstockCollective_Rewards_Whitepaper_V1_0.pdf'
}
target="_blank"
rel="noopener noreferrer"
>
Whitepaper
</Link>
)
1 change: 1 addition & 0 deletions src/app/collective-rewards/shared/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './Table'
export * from './Search'
export * from './CRWhitepaperLink'

0 comments on commit 733aa2a

Please sign in to comment.