Skip to content

Commit

Permalink
more internals renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjennings committed Nov 3, 2024
1 parent 23a897e commit 7c668a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/lib/Modals.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<script lang="ts">
import type { Snippet } from 'svelte'
import ModalContext from './ModalContext.svelte'
import StackedModalContext from './StackedModalContext.svelte'
import type { ModalProps } from './stacked-modal.svelte'
import { ModalStack } from './modal-stack.svelte'
import type { LazyModalComponent, ModalComponent } from './types'
Expand All @@ -38,7 +38,7 @@
{/if}

{#each modals.stack as m, i (m.id)}
<ModalContext modal={m}>
<StackedModalContext modal={m}>
<!-- lazy modal -->
{#if isLazyModal(m.component)}
{#await m.component()}
Expand All @@ -58,5 +58,5 @@
<m.component {...m.props} />
{/if}
{/if}
</ModalContext>
</StackedModalContext>
{/each}
File renamed without changes.
2 changes: 1 addition & 1 deletion src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { default as Modals, modals, type ModalsProps } from './Modals.svelte'
export { getModal, onBeforeClose, exitBeforeEnter } from './ModalContext.svelte'
export { getModal, onBeforeClose, exitBeforeEnter } from './StackedModalContext.svelte'
export * from './stacked-modal.svelte'
export * from './modal-stack.svelte'
export type { LazyModalComponent, ModalComponent } from './types.d.ts'

0 comments on commit 7c668a8

Please sign in to comment.