menu stuff

This commit is contained in:
ntr
2019-12-24 16:46:25 +10:00
parent cf4972a1b8
commit 493e7bcfd5
5 changed files with 8 additions and 24 deletions
+1 -16
View File
@@ -59,17 +59,7 @@ function Header(args) {
if (!account) return false;
if (!authenticated) return (
<header>
<div class="options">
<button
onClick={() => navTo('play')}
class='logo login-btn'>
&nbsp;
</button>
</div>
</header>
)
if (!authenticated) return false;
function navTo(p) {
return setNav(p);
@@ -83,11 +73,6 @@ function Header(args) {
return (
<header>
<div class="options">
<button
onClick={() => navTo('play')}
class='logo login-btn'>
&nbsp;
</button>
<button
onClick={() => navTo('play')}
class={`login-btn ${nav === 'play' ? 'highlight' : ''}`}>
+2 -2
View File
@@ -19,7 +19,7 @@ function Welcome() {
const form = <div>{pageEl()}</div>;
return (
<div>
<header>
<div class="options">
<button
class={`login-btn ${page === 'login' ? 'highlight' : ''}`}
@@ -41,7 +41,7 @@ function Welcome() {
</button>
</div>
{form}
</div>
</header>
);
}