Fixed all react warnings

This commit is contained in:
Mathias Wagner
2022-04-09 23:53:50 +02:00
parent 94cf914c0a
commit 91eed1c7cb
2 changed files with 4 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ export const toggleDropdown = () => {
}
}
export default () => {
function DropdownComponent() {
const [setDialog] = useContext(DialogContext);
let headers = localStorage.getItem("password") ? {password: localStorage.getItem("password")} : {}
@@ -131,4 +131,6 @@ export default () => {
</div>
</div>
)
}
}
export default DropdownComponent;

View File

@@ -5,10 +5,6 @@ import "../style/Speedtest.sass";
class Speedtest extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div>