Add 'Show less' in detailed traffic info paragraph
This commit is contained in:
parent
6fc5fd8ea4
commit
30bcbd0286
@ -59,7 +59,10 @@ class TrafficEntry extends Component {
|
||||
</div>
|
||||
{lineInterference &&
|
||||
<div className="infoWrapper" onClick={this.toggle}>
|
||||
<p className={`${this.state.expanded ? "expanded" : ""}`}>{trafficInfo}</p>
|
||||
<p className={`${this.state.expanded ? "expanded" : ""}`}>
|
||||
{trafficInfo}
|
||||
<span style={{display: (this.state.expanded ? "inline" : "none"), marginLeft: "5px" }}><u>Visa mindre</u></span>
|
||||
</p>
|
||||
<span style={{display: (this.state.expanded ? "none" : "block") }}><u>Visa mer</u></span>
|
||||
</div>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user