refactor(web): admin page layout (#25281)

* refactor(web): admin page layout

* chore: remove unused props
This commit is contained in:
Jason Rasmussen
2026-01-15 18:58:43 -05:00
committed by GitHub
parent 256d62e22d
commit 843d563178
7 changed files with 92 additions and 103 deletions
@@ -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}