Skip to content

Commit 74d2d8b

Browse files
committed
tweak lander
1 parent 131ad9a commit 74d2d8b

File tree

7 files changed

+358
-348
lines changed

7 files changed

+358
-348
lines changed

app/web/src/app.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export function App(props: { url?: string }) {
2424
children={routes}
2525
url={props.url}
2626
root={props => {
27+
console.log(props)
2728
return <>
2829
{props.children}
2930
</>

app/web/src/pages/[workspace]/components/Layout.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ export default function Layout(props: ParentProps) {
2121
return null
2222
})
2323

24+
function handleLogout() {
25+
auth.logout(auth.subject?.id!)
26+
window.location.assign("/")
27+
}
28+
2429
return (
2530
<div class={style.root}>
2631
{/* Mobile top bar */}
@@ -89,7 +94,7 @@ export default function Layout(props: ParentProps) {
8994
<div data-slot="user">
9095
<Button
9196
color="ghost"
92-
onClick={() => auth.logout(auth.subject?.id!)}
97+
onClick={handleLogout}
9398
title={account.current?.email || ""}
9499
>
95100
Logout

0 commit comments

Comments
 (0)