refactor: admin sidebar (#18276)

This commit is contained in:
Jason Rasmussen
2025-05-14 11:23:57 -04:00
committed by GitHub
parent 4efc41d5d9
commit 4445288758
15 changed files with 103 additions and 55 deletions

View File

@@ -5,7 +5,6 @@
<script lang="ts">
import { useActions, type ActionArray } from '$lib/actions/use-actions';
import NavigationBar from '$lib/components/shared-components/navigation-bar/navigation-bar.svelte';
import AdminSideBar from '$lib/components/shared-components/side-bar/admin-side-bar.svelte';
import SideBar from '$lib/components/shared-components/side-bar/side-bar.svelte';
import { openFileUploadDialog } from '$lib/utils/file-uploader';
import type { Snippet } from 'svelte';
@@ -16,7 +15,6 @@
title?: string | undefined;
description?: string | undefined;
scrollbar?: boolean;
admin?: boolean;
use?: ActionArray;
header?: Snippet;
sidebar?: Snippet;
@@ -30,7 +28,6 @@
title = undefined,
description = undefined,
scrollbar = true,
admin = false,
use = [],
header,
sidebar,
@@ -58,8 +55,6 @@
>
{#if sidebar}
{@render sidebar()}
{:else if admin}
<AdminSideBar />
{:else}
<SideBar />
{/if}