(fix) less / more link color for each network

This commit is contained in:
Gabriel Rodriguez Alsina 2019-01-02 11:30:55 -03:00
parent 333a964df3
commit abd9c21619
4 changed files with 17 additions and 4 deletions

View File

@ -58,7 +58,16 @@
display: inline-block;
margin-left: 5px;
.sokol & {
&#{ & }-core {
color: $poa-purple;
}
&#{ & }-sokol {
color: $sokol-cyan;
}
&#{ & }-dai {
color: $xdai-orange;
}
}

File diff suppressed because one or more lines are too long

View File

@ -715,6 +715,7 @@ export class BallotCard extends React.Component {
<Votes networkBranch={networkBranch} votes={votes} />
<BallotInfoContainer
memo={this.memo}
networkBranch={networkBranch}
threshold={threshold}
validatorsLength={contractsStore.validatorsLength}
/>

View File

@ -18,10 +18,13 @@ export class BallotInfoContainer extends React.Component {
}
render() {
let { memo = '', threshold, validatorsLength } = this.props
let { memo = '', threshold, validatorsLength, networkBranch } = this.props
let toggleShowMore =
memo.length > MAX_DETAILS_LENGTH ? (
<span className="bc-BallotInfoContainer_ToggleShow" onClick={this.toggleDetails}>
<span
className={`bc-BallotInfoContainer_ToggleShow bc-BallotInfoContainer_ToggleShow-${networkBranch}`}
onClick={this.toggleDetails}
>
{this.state.detailsCollapsed ? 'More...' : 'Less'}
</span>
) : (