chore: remove unused props

This commit is contained in:
Jason Rasmussen
2026-01-15 14:38:33 -05:00
parent 887033ced3
commit c55564487e
4 changed files with 7 additions and 14 deletions

View File

@@ -21,7 +21,7 @@
<AppShell>
<AppShellHeader>
<NavigationBar showUploadButton={false} noBorder />
<NavigationBar noBorder />
</AppShellHeader>
<AppShellSidebar
bind:open={sidebarStore.isOpen}

View File

@@ -14,13 +14,11 @@
interface Props {
hideNavbar?: boolean;
showUploadButton?: boolean;
title?: string | undefined;
description?: string | undefined;
scrollbar?: boolean;
use?: ActionArray;
actions?: Array<HeaderButtonActionItem | MenuItemType>;
header?: Snippet;
sidebar?: Snippet;
buttons?: Snippet;
children?: Snippet;
@@ -28,13 +26,11 @@
let {
hideNavbar = false,
showUploadButton = false,
title = undefined,
description = undefined,
scrollbar = true,
use = [],
actions = [],
header,
sidebar,
buttons,
children,
@@ -52,10 +48,8 @@
<header>
{#if !hideNavbar}
<NavigationBar {showUploadButton} onUploadClick={() => openFileUploadDialog()} />
<NavigationBar onUploadClick={() => openFileUploadDialog()} />
{/if}
{@render header?.()}
</header>
<div
tabindex="-1"

View File

@@ -25,14 +25,13 @@
import UserAvatar from '../user-avatar.svelte';
import AccountInfoPanel from './account-info-panel.svelte';
interface Props {
showUploadButton?: boolean;
type Props = {
onUploadClick?: () => void;
// TODO: remove once this is only used in <AppShellHeader>
noBorder?: boolean;
}
};
let { showUploadButton = true, onUploadClick, noBorder = false }: Props = $props();
let { onUploadClick, noBorder = false }: Props = $props();
let shouldShowAccountInfoPanel = $state(false);
let shouldShowNotificationPanel = $state(false);
@@ -105,7 +104,7 @@
/>
{/if}
{#if !page.url.pathname.includes('/admin') && showUploadButton && onUploadClick}
{#if !page.url.pathname.includes('/admin') && onUploadClick}
<Button
leadingIcon={mdiTrayArrowUp}
onclick={onUploadClick}

View File

@@ -102,7 +102,7 @@
);
</script>
<UserPageLayout hideNavbar={assetInteraction.selectionActive} showUploadButton scrollbar={false}>
<UserPageLayout hideNavbar={assetInteraction.selectionActive} scrollbar={false}>
<Timeline
enableRouting={true}
bind:timelineManager