Skip to content

Commit 2d039aa

Browse files
authored
Merge pull request #76 from mainmatter/export-use-modal-context
Add missing `useModalContext` export
2 parents 1dfee1f + 6de0f74 commit 2d039aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export { default as ModalContainer } from './ModalContainer.svelte';
2-
export { openModal } from './service';
2+
export { openModal, useModalContext } from './service';
33
export type { CloseModalFn } from './types';

tests-ct/Wrapper.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script>
2-
import { useModalContext } from '$lib/service';
2+
import { useModalContext } from '$lib';
33
44
let { openModal } = useModalContext();
55
</script>

0 commit comments

Comments
 (0)