Skip to content

Commit

Permalink
DDW-16 Table comparison view for stake pools - fixes for stakepool table
Browse files Browse the repository at this point in the history
  • Loading branch information
DeeJayElly committed Oct 20, 2020
1 parent 2565b27 commit 189f5c4
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 64 deletions.
Expand Up @@ -175,7 +175,6 @@ export class StakePoolsTable extends Component<Props, State> {

componentWillUnmount() {
this._isMounted = false;
window.removeEventListener('resize', this.handleClose);
this.scrollableDomElement = document.querySelector(
`.${this.props.containerClassName}`
);
Expand Down Expand Up @@ -230,10 +229,11 @@ export class StakePoolsTable extends Component<Props, State> {
highlightedPoolId,
});
}
return null;
};

bigNumbersToFormattedNumbers = (value: BigNumber, shortNumber?: boolean) => {
const formattedValue = formattedWalletAmount(value, false, !shortNumber);
bigNumbersToFormattedNumbers = (value: BigNumber, shorterNumber?: boolean) => {
const formattedValue = formattedWalletAmount(value, false, !shorterNumber);
const splitValues = formattedValue.split(',');
let result = '';
splitValues.map((item) => {
Expand Down
Expand Up @@ -31,8 +31,8 @@
.noDataDash {
align-items: center;
display: flex;
justify-content: center;
height: 27px;
justify-content: center;

:global {
.SVGInline {
Expand Down

0 comments on commit 189f5c4

Please sign in to comment.