mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-05-04 19:20:25 -05:00
Added the password prop to the dialog
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
import {Component} from "react";
|
||||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
||||
import {faArrowDown, faArrowUp, faClockRotateLeft, faPingPongPaddleBall} from "@fortawesome/free-solid-svg-icons";
|
||||
import {
|
||||
faArrowDown,
|
||||
faArrowUp,
|
||||
faClockRotateLeft,
|
||||
faClose,
|
||||
faPingPongPaddleBall
|
||||
} from "@fortawesome/free-solid-svg-icons";
|
||||
import "../style/Speedtest.sass";
|
||||
|
||||
class Speedtest extends Component {
|
||||
@@ -14,16 +20,16 @@ class Speedtest extends Component {
|
||||
<h2 className="date-text">Um {this.props.time}</h2>
|
||||
</div>
|
||||
<div className="speedtest-row">
|
||||
<FontAwesomeIcon icon={faPingPongPaddleBall} className={"speedtest-icon icon-" + this.props.pingLevel}/>
|
||||
<h2 className="speedtest-text">{this.props.ping}</h2>
|
||||
<FontAwesomeIcon icon={this.props.ping !== 0 ? faPingPongPaddleBall : faClose} className={"speedtest-icon icon-" + this.props.pingLevel}/>
|
||||
<h2 className="speedtest-text">{this.props.ping === 0 ? "" : this.props.ping}</h2>
|
||||
</div>
|
||||
<div className="speedtest-row">
|
||||
<FontAwesomeIcon icon={faArrowDown} className={"speedtest-icon icon-" + this.props.downLevel} />
|
||||
<h2 className="speedtest-text">{this.props.down}</h2>
|
||||
<FontAwesomeIcon icon={this.props.down !== 0 ? faArrowDown : faClose} className={"speedtest-icon icon-" + this.props.downLevel} />
|
||||
<h2 className="speedtest-text">{this.props.down === 0 ? "" : this.props.down}</h2>
|
||||
</div>
|
||||
<div className="speedtest-row">
|
||||
<FontAwesomeIcon icon={faArrowUp} className={"speedtest-icon icon-" + this.props.upLevel}/>
|
||||
<h2 className="speedtest-text">{this.props.up}</h2>
|
||||
<FontAwesomeIcon icon={this.props.up !== 0 ? faArrowUp : faClose} className={"speedtest-icon icon-" + this.props.upLevel}/>
|
||||
<h2 className="speedtest-text">{this.props.up === 0 ? "" : this.props.up}</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user