Created a dropdown option to switch to recommended settings

This commit is contained in:
Mathias Wagner
2022-05-07 22:40:09 +02:00
parent 54719a8f9f
commit ca7b6a8e5a
+9 -1
View File
@@ -7,7 +7,7 @@ import {
faGaugeHigh, faInfo,
faKey,
faPingPongPaddleBall,
faServer
faServer, faWandMagicSparkles
} from "@fortawesome/free-solid-svg-icons";
import {DialogContext} from "../context/DialogContext";
@@ -111,6 +111,10 @@ function DropdownComponent() {
setDialog({title: "MySpeed", description: <>Deine Änderungen wurden übernommen.</>, buttonText: "Okay"});
}
const recommendedSettings = async () => {
}
return (
<div className="dropdown dropdown-invisible">
<div id="dropdown" className="dropdown-content">
@@ -128,6 +132,10 @@ function DropdownComponent() {
<FontAwesomeIcon icon={faArrowDown}/>
<h3>Optimaler Down-Speed</h3>
</div>
<div className="dropdown-item" onClick={recommendedSettings}>
<FontAwesomeIcon icon={faWandMagicSparkles}/>
<h3>Optimale Werte</h3>
</div>
<div className="center">
<hr className="dropdown-hr"/>
</div>