diff --git a/svelte-ui/src/App.svelte b/svelte-ui/src/App.svelte index 3dea91e..1c40280 100644 --- a/svelte-ui/src/App.svelte +++ b/svelte-ui/src/App.svelte @@ -24,6 +24,7 @@ import GoalForm from "./forms/GoalForm.svelte"; import LoginForm from "./forms/LoginForm.svelte"; import authStore from "./stores/auth"; +import FocusHandler from "./components/FocusHandler.svelte"; onMount(() => { authStore.check() @@ -32,6 +33,7 @@ {#if $authStore.checked} {#if $authStore.loggedIn} +
diff --git a/svelte-ui/src/components/FocusHandler.svelte b/svelte-ui/src/components/FocusHandler.svelte new file mode 100644 index 0000000..f49f416 --- /dev/null +++ b/svelte-ui/src/components/FocusHandler.svelte @@ -0,0 +1,30 @@ + \ No newline at end of file