Added the password prop to the dialog

This commit is contained in:
Mathias Wagner
2022-05-04 22:47:42 +02:00
parent 517a22e93e
commit 8669aa8340
+13 -7
View File
@@ -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>