Remove restart button, double click
This commit is contained in:
parent
98ff934797
commit
4b5cb19bd8
@ -46,7 +46,7 @@ export default class NavBar extends Component {
|
|||||||
|
|
||||||
this.setState({ clicks: clicks + 1 });
|
this.setState({ clicks: clicks + 1 });
|
||||||
|
|
||||||
if (clicks + 1 === 3) {
|
if (clicks + 1 === 2) {
|
||||||
window.location.replace("/settings");
|
window.location.replace("/settings");
|
||||||
|
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
|
@ -28,12 +28,12 @@ export default class SettingsComponent extends Component {
|
|||||||
>
|
>
|
||||||
<span>🔴 Power Off</span>
|
<span>🔴 Power Off</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
{/* <div
|
||||||
className="settings-powerButton"
|
className="settings-powerButton"
|
||||||
onClick={() => this.restartPower()}
|
onClick={() => this.restartPower()}
|
||||||
>
|
>
|
||||||
<span>🟨 Restart</span>
|
<span>🟨 Restart</span>
|
||||||
</div>
|
</div> */}
|
||||||
</div>
|
</div>
|
||||||
<div className="settings-creditsContainer">
|
<div className="settings-creditsContainer">
|
||||||
<div className="settings-credits">
|
<div className="settings-credits">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user