mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-01-28 16:18:36 -06:00
Fixed all react warnings
This commit is contained in:
@@ -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;
|
||||
@@ -5,10 +5,6 @@ import "../style/Speedtest.sass";
|
||||
|
||||
class Speedtest extends Component {
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user