-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
45 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Show } from "solid-js"; | ||
import { authUser } from "../../util/auth"; | ||
import { decodePath } from "../../util/url"; | ||
|
||
const AuthButtons = () => { | ||
return ( | ||
<Show | ||
when={authUser()?.token} | ||
fallback={ | ||
<div class="buttons"> | ||
<a class="button" href="/auth/login"> | ||
Log in | ||
</a> | ||
<a class="button is-primary" href="/auth/signup"> | ||
<strong>Sign up</strong> | ||
</a> | ||
</div> | ||
} | ||
> | ||
<a class="button" href={decodePath("/console")}> | ||
<span class="icon has-text-primary"> | ||
<i class="fas fa-angle-left" aria-hidden="true" /> | ||
</span> | ||
<span>Back to Console</span> | ||
</a> | ||
</Show> | ||
); | ||
}; | ||
|
||
export default AuthButtons; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
export const BENCHER_NAVBAR_AUTH_ID = "bencher-navbar-auth"; | ||
|
||
export const BENCHER_NAVBAR_BURGER_ID = "bencher-navbar-burger"; | ||
export const BENCHER_NAVBAR_MENU_ID = "bencher-navbar-menu"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters