Skip to content

Commit

Permalink
Buy token link
Browse files Browse the repository at this point in the history
  • Loading branch information
vrrayz committed Aug 31, 2023
1 parent 83b4ef3 commit c91b637
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/ui/src/memberships/components/ProfileComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from 'styled-components'

import { TransferButtonStyled } from '../../accounts/components/TransferButton'
import { useMyTotalBalances } from '../../accounts/hooks/useMyTotalBalances'
import { TokenValue } from '../../common/components/typography'
import { TextSmall, TokenValue } from '../../common/components/typography'
import { Colors } from '../../common/constants'

import { Memberships } from '.'
Expand All @@ -19,6 +19,11 @@ export function ProfileComponent() {
<BalanceTitle>Total Balance</BalanceTitle>
<TotalBalance>
<TotalTokenValue value={total} />
<TextSmall>
<BuyTokenLink href="https://www.joystream.org/token" target="_blank">
Buy Joy tokens
</BuyTokenLink>
</TextSmall>
</TotalBalance>
<TransferButtonStyled />
</MemberBalance>
Expand Down Expand Up @@ -79,8 +84,13 @@ const TotalBalance = styled.span`
line-height: 24px;
color: ${Colors.White};
font-weight: 700;
flex-direction: column;
`

const TotalTokenValue = styled(TokenValue)`
color: ${Colors.White};
`
const BuyTokenLink = styled.a`
color: ${Colors.White};
text-decoration: underline;
`

0 comments on commit c91b637

Please sign in to comment.