Skip to content

Commit

Permalink
[DDW-16] Adds stake pools you are delegating to
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaglumac committed Oct 22, 2020
1 parent e13db91 commit 95c0081
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions source/renderer/app/components/staking/stake-pools/StakePools.js
Expand Up @@ -250,6 +250,25 @@ export default class StakePools extends Component<Props, State> {
isClearTooltipOpeningDownward
isScrolled={isScrolled}
/>
{stakePoolsDelegatingList.length > 0 && (
<Fragment>
<h2 className={styles.listTitle}>
{intl.formatMessage(messages.delegatingListTitle)}
</h2>
<StakePoolsList
listName={STAKE_POOLS_DELEGATING_LIST}
stakePoolsList={stakePoolsDelegatingList}
onOpenExternalLink={onOpenExternalLink}
currentTheme={currentTheme}
isListActive={selectedList === STAKE_POOLS_DELEGATING_LIST}
setListActive={this.handleSetListActive}
containerClassName="StakingWithNavigation_page"
onSelect={this.onDelegate}
numberOfRankedStakePools={numberOfRankedStakePools}
showWithSelectButton
/>
</Fragment>
)}
{isListView && (
<Fragment>
<h2 className={tableHeadingClasses}>
Expand Down Expand Up @@ -282,27 +301,6 @@ export default class StakePools extends Component<Props, State> {
)}
{isGridView && (
<Fragment>
{stakePoolsDelegatingList.length > 0 && (
<Fragment>
<h2 className={styles.listTitle}>
{intl.formatMessage(messages.delegatingListTitle)}
</h2>
<StakePoolsList
listName={STAKE_POOLS_DELEGATING_LIST}
stakePoolsList={stakePoolsDelegatingList}
onOpenExternalLink={onOpenExternalLink}
currentTheme={currentTheme}
isListActive={
selectedList === STAKE_POOLS_DELEGATING_LIST
}
setListActive={this.handleSetListActive}
containerClassName="StakingWithNavigation_page"
onSelect={this.onDelegate}
numberOfRankedStakePools={numberOfRankedStakePools}
showWithSelectButton
/>
</Fragment>
)}
<h2>
<FormattedMessage
{...listTitleMessage}
Expand Down

0 comments on commit 95c0081

Please sign in to comment.