refactor: User and session management

This commit is contained in:
Aleksi Lassila
2024-06-12 18:32:39 +03:00
parent a73f9d6cca
commit 5c1a4d4206
28 changed files with 364 additions and 388 deletions

View File

@@ -6,6 +6,7 @@
import classNames from 'classnames';
export let topmost = true;
export let sidebar = true;
// Top element, that when focused and back is pressed, will exit the modal
const topSelectable = useRegistrar();
@@ -41,7 +42,9 @@
direction="horizontal"
on:mount
>
<Sidebar />
{#if sidebar}
<Sidebar />
{/if}
<Container on:back={handleGoToTop} focusOnMount class={classNames($$restProps.class)}>
<slot {handleGoBack} registrar={topSelectable.registrar} />
</Container>