Skip to content

Commit

Permalink
Fix split rate displayment
Browse files Browse the repository at this point in the history
  • Loading branch information
WRadoslaw committed Nov 8, 2023
1 parent 5402162 commit 84f6eb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/atlas/src/components/RatioPreview/RatioPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export const RatioPreview = ({ ratios }: RatioPreviewProps) => {
</FlexBox>
</FlexBox>
<FlexBox>
<SingleRatio ratio={20} color={cVar('colorBackgroundStrongAlpha')} />
<SingleRatio ratio={80} color={cVar('colorTextPrimary')} />
<SingleRatio ratio={firstRatio[0]} color={cVar('colorBackgroundStrongAlpha')} />
<SingleRatio ratio={secondRatio[0]} color={cVar('colorTextPrimary')} />
</FlexBox>
</FlexBox>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export const CrtRevenueTab = ({ token }: CrtRevenueTabProps) => {
customNode={
<RatioPreview
ratios={[
[100 - permillToPercentage(token.revenueShareRatioPermill), 'Holders'],
[permillToPercentage(token.revenueShareRatioPermill), 'Channel'],
[permillToPercentage(token.revenueShareRatioPermill), 'Holders'],
[100 - permillToPercentage(token.revenueShareRatioPermill), 'Channel'],
]}
/>
}
Expand Down

0 comments on commit 84f6eb7

Please sign in to comment.