mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 18:24:21 +01:00
wip: console
This commit is contained in:
@@ -32,7 +32,7 @@ const isLoggedIn = query(async () => {
|
|||||||
}, "isLoggedIn")
|
}, "isLoggedIn")
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
const workspaceId = createAsync(() => isLoggedIn(), {
|
const auth = createAsync(() => isLoggedIn(), {
|
||||||
deferStream: true,
|
deferStream: true,
|
||||||
})
|
})
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
@@ -92,7 +92,7 @@ export default function Home() {
|
|||||||
href="/auth"
|
href="/auth"
|
||||||
target="_self"
|
target="_self"
|
||||||
>
|
>
|
||||||
Sign in
|
{auth() ? "Dashboard" : "Sign in"}
|
||||||
</a>
|
</a>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user