Remove unused balances props (#1647)

* Remove unused balances props

* Comment CSS horribleness

* Extra {

* Merge master
This commit is contained in:
Jaco Greeff 2019-09-23 15:21:11 +02:00 committed by GitHub
parent 1055d3b6ee
commit ff5b5c2a3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 22 deletions

View File

@ -4,7 +4,7 @@
// of the Apache-2.0 license. See the LICENSE file for details.
import { AccountId, Balance, BlockNumber, Exposure } from '@polkadot/types/interfaces';
import { DerivedBalancesMap, DerivedStaking, DerivedStakingOnlineStatus } from '@polkadot/api-derive/types';
import { DerivedStaking, DerivedStakingOnlineStatus } from '@polkadot/api-derive/types';
import { ApiProps } from '@polkadot/react-api/types';
import { I18nProps } from '@polkadot/react-components/types';
import { ValidatorFilter } from '../types';
@ -22,7 +22,6 @@ import translate from '../translate';
interface Props extends ApiProps, I18nProps {
address: string;
balances: DerivedBalancesMap;
className?: string;
defaultName: string;
filter: ValidatorFilter;

View File

@ -3,7 +3,6 @@
// of the Apache-2.0 license. See the LICENSE file for details.
import { BlockNumber } from '@polkadot/types/interfaces';
import { DerivedBalancesMap } from '@polkadot/api-derive/types';
import { I18nProps } from '@polkadot/react-components/types';
import { ValidatorFilter } from '../types';
@ -14,7 +13,6 @@ import translate from '../translate';
import Address from './Address';
interface Props extends I18nProps {
balances?: DerivedBalancesMap;
currentValidatorsControllersV1OrStashesV2: string[];
lastAuthor?: string;
lastBlock: string;
@ -80,13 +78,12 @@ class CurrentList extends React.PureComponent<Props, State> {
}
private renderColumn (addresses: string[], defaultName: string): React.ReactNode {
const { balances, lastAuthor, lastBlock, recentlyOnline } = this.props;
const { lastAuthor, lastBlock, recentlyOnline } = this.props;
const { filter } = this.state;
return addresses.map((address): React.ReactNode => (
<Address
address={address}
balances={balances}
defaultName={defaultName}
key={address}
filter={filter}

View File

@ -213,26 +213,29 @@
}
}
a.apps--SideBar-Item-NavLink {
color: #eee;
display: block;
padding: 0.75em 0.75em;
white-space: nowrap;
&:hover {
background: #5f5f5f;
border-radius: 0.28571429rem 0 0 0.28571429rem;
/* This is horrible ... will disappear once this stuff is actually where it belongs and not in a stylesheet */
.theme--default {
a.apps--SideBar-Item-NavLink {
color: #eee;
display: block;
padding: 0.75em 0.75em;
white-space: nowrap;
&:hover {
background: #5f5f5f;
border-radius: 0.28571429rem 0 0 0.28571429rem;
color: #eee;
}
}
}
a.apps--SideBar-Item-NavLink-active {
background: #fafafa;
border-radius: 0.28571429rem 0 0 0.28571429rem;
color: #3f3f3f;
&:hover {
a.apps--SideBar-Item-NavLink-active {
background: #fafafa;
border-radius: 0.28571429rem 0 0 0.28571429rem;
color: #3f3f3f;
&:hover {
background: #fafafa;
color: #3f3f3f;
}
}
}