ignore: cloud
This commit is contained in:
@@ -23,7 +23,6 @@ function CopyStatus() {
|
|||||||
const isLoggedIn = query(async () => {
|
const isLoggedIn = query(async () => {
|
||||||
"use server"
|
"use server"
|
||||||
const actor = await getActor()
|
const actor = await getActor()
|
||||||
console.log(actor)
|
|
||||||
if (actor.type === "account") {
|
if (actor.type === "account") {
|
||||||
const workspaces = await withActor(() => Account.workspaces())
|
const workspaces = await withActor(() => Account.workspaces())
|
||||||
throw redirect(`/workspace/${workspaces[0].id}`)
|
throw redirect(`/workspace/${workspaces[0].id}`)
|
||||||
@@ -34,7 +33,7 @@ const isLoggedIn = query(async () => {
|
|||||||
|
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
const workspaceId = createAsync(() => isLoggedIn(), {
|
createAsync(() => isLoggedIn(), {
|
||||||
deferStream: true,
|
deferStream: true,
|
||||||
})
|
})
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
|||||||
10
cloud/app/src/routes/workspace.tsx
Normal file
10
cloud/app/src/routes/workspace.tsx
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import { RouteSectionProps } from "@solidjs/router";
|
||||||
|
|
||||||
|
export default function WorkspaceLayout(props: RouteSectionProps) {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<h1>Workspace</h1>
|
||||||
|
{props.children}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user