Skeleton: Migrate to page from $app/state
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
import "../app.css";
|
import "../app.css";
|
||||||
import { onDestroy, onMount, type Snippet } from "svelte";
|
import { onDestroy, onMount, type Snippet } from "svelte";
|
||||||
import type { LayoutData } from "./$types";
|
import type { LayoutData } from "./$types";
|
||||||
import { page } from "$app/stores";
|
import { page } from "$app/state";
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
MenuDrawerIcon,
|
MenuDrawerIcon,
|
||||||
@ -578,7 +578,7 @@
|
|||||||
<Button
|
<Button
|
||||||
color="primary"
|
color="primary"
|
||||||
onclick={data_drawer}
|
onclick={data_drawer}
|
||||||
activate={$page.url.pathname.startsWith("/data")}>Data</Button
|
activate={page.url.pathname.startsWith("/data")}>Data</Button
|
||||||
>
|
>
|
||||||
|
|
||||||
{#if !$pbUser}
|
{#if !$pbUser}
|
||||||
|
Reference in New Issue
Block a user