Skip to content

Commit

Permalink
CR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
WRadoslaw committed Nov 17, 2023
1 parent 90d65d4 commit 29084a5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/atlas/src/components/Pill/Pill.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const variantStyles = ({ variant }: PillProps) => {
export const StyledPill = styled.div<PillProps & { hasLabel: boolean }>`
display: inline-flex;
align-items: center;
border-radius: ${(props) => (props.round ? '50%' : '2px')};
border-radius: ${(props) => (props.round ? '50%' : cVar('radiusSmall'))};
svg {
> * {
Expand Down
6 changes: 2 additions & 4 deletions packages/atlas/src/components/Tabs/Tabs.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export const TabsGroup = styled.div<{ isBig?: boolean } & MaskProps>`
display: flex;
position: relative;
overflow: auto;
padding: ${({ isBig }) => (isBig ? `${sizes(4)} 0` : 'unset')};
padding-bottom: 0;
padding: ${({ isBig }) => (isBig ? `${sizes(4)} ${sizes(4)} 0` : 'unset')};
${getMaskImage}
Expand All @@ -32,8 +31,7 @@ export const TabsGroup = styled.div<{ isBig?: boolean } & MaskProps>`
}
${media.md} {
padding: ${({ isBig }) => (isBig ? sizes(8) : 'unset')};
padding-bottom: 0;
padding: ${({ isBig }) => (isBig ? `${sizes(8)} ${sizes(8)} 0` : 'unset')};
}
`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const RevenueShareWidget = ({ tokenName, tokenId, revenueShare, memberId
const { convertBlockToMsTimestamp, currentBlock } = useBlockTimeEstimation()
const memberStake = revenueShare.stakers.find((stakers) => stakers.account.member.id === memberId)
const status =
revenueShare.createdIn > currentBlock
revenueShare.startingAt > currentBlock
? 'upcoming'
: revenueShare.endsAt < currentBlock && memberStake
? 'unlocked'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
} from '@/components/_crt/CrtPortfolioTable/CrtPortfolioTable'
import { RevenueShareWidget } from '@/components/_crt/RevenueShareWidget/RevenueShareWidget'
import { SendFundsDialog } from '@/components/_overlays/SendTransferDialogs'
import { atlasConfig } from '@/config'
import { useMediaMatch } from '@/hooks/useMediaMatch'
import { useSubscribeAccountBalance, useTokenPrice } from '@/providers/joystream'
import { useJoystreamStore } from '@/providers/joystream/joystream.store'
Expand Down Expand Up @@ -171,12 +172,14 @@ export const PortfolioTokenTab = () => {

<FlexBox flow="column" gap={6}>
<Text variant="h500" as="h3">
JOY balance
{atlasConfig.joystream.tokenTicker} balance
</Text>
<StyledTable
data={[
{
name: <TokenInfo tokenName="Joystream" tokenTitle="JOY" isVerified={false} />,
name: (
<TokenInfo tokenName="Joystream" tokenTitle={atlasConfig.joystream.tokenTicker} isVerified={false} />
),
price: (
<Text variant="t100" as="p">
${tokenPrice?.toFixed(6)}
Expand Down

0 comments on commit 29084a5

Please sign in to comment.