Skip to content

Commit

Permalink
Updating
Browse files Browse the repository at this point in the history
  • Loading branch information
alankrantas committed May 10, 2023
1 parent b4091bf commit f55d615
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/utils/Showcase.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { flip } from 'svelte/animate';
import { expoOut } from 'svelte/easing';
import ShowcaseDetail from './ShowcaseDetail.svelte';
import type { Context } from 'svelte-simple-modal';
import type { WorkItem } from '../../data/Types';
export let title: string;
Expand All @@ -15,8 +16,7 @@
listStartWorkId = Math.max(0, Math.min(listStartWorkId + delta, works.length - displayNum));
};
// @ts-ignore
const { open } = getContext('simple-modal');
const { open } = getContext('simple-modal') as Context;
const popShowcaseDetail = (work: WorkItem) => open(ShowcaseDetail, { work: work });
</script>

Expand Down

0 comments on commit f55d615

Please sign in to comment.