refactor: render footer directly

This commit is contained in:
Harsh Mahajan
2025-08-18 12:09:42 +05:30
parent 26a2210c58
commit aa59ebc57b
@@ -122,11 +122,6 @@
{#if $createRow}
<div class="sheet-container">
<!-- TODO: add a ID badge-->
{#snippet footer()}
<Layout.Stack inline direction="row" alignItems="center">
<Selector.Switch id="create-more" bind:checked={createMore} label="Create more" />
</Layout.Stack>
{/snippet}
<SideSheet
spaced
title={`${existingData ? 'Duplicate' : 'Create'} row`}
@@ -136,8 +131,16 @@
text: 'Create',
disabled: isSubmitting,
onClick: async () => await create()
}}
{footer}>
}}>
{#snippet footer()}
<Layout.Stack inline direction="row" alignItems="center">
<Selector.Switch
id="create-more"
bind:checked={createMore}
label="Create more" />
</Layout.Stack>
{/snippet}
<Layout.Stack gap="xxl">
<div bind:this={columnFormWrapper}>
<ColumnForm