mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
Fix missing import and do not invoke close(), just pass it
This commit is contained in:
parent
ce607c6f26
commit
a5b4e3eb24
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@
|
||||||
*/
|
*/
|
||||||
export let iconDescription = "Closes notification";
|
export let iconDescription = "Closes notification";
|
||||||
|
|
||||||
import { createEventDispatcher } from "svelte";
|
import { createEventDispatcher, onMount } from "svelte";
|
||||||
import NotificationIcon from "./NotificationIcon.svelte";
|
import NotificationIcon from "./NotificationIcon.svelte";
|
||||||
import NotificationTextDetails from "./NotificationTextDetails.svelte";
|
import NotificationTextDetails from "./NotificationTextDetails.svelte";
|
||||||
import NotificationButton from "./NotificationButton.svelte";
|
import NotificationButton from "./NotificationButton.svelte";
|
||||||
|
@ -103,7 +103,7 @@
|
||||||
<NotificationButton
|
<NotificationButton
|
||||||
{iconDescription}
|
{iconDescription}
|
||||||
{notificationType}
|
{notificationType}
|
||||||
on:click={close()} />
|
on:click={close} />
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue