diff --git a/packages/client/src/components/ClientApp.svelte b/packages/client/src/components/ClientApp.svelte index b0337bd53f..ece44ab3ee 100644 --- a/packages/client/src/components/ClientApp.svelte +++ b/packages/client/src/components/ClientApp.svelte @@ -2,6 +2,7 @@ import { writable } from "svelte/store" import { setContext, onMount } from "svelte" import Component from "./Component.svelte" + import NotificationDisplay from './NotificationDisplay.svelte' import SDK from "../sdk" import { createDataStore, initialise, screenStore, notificationStore } from "../store" @@ -23,4 +24,5 @@ {#if loaded && $screenStore.activeLayout} -{/if} \ No newline at end of file +{/if} + \ No newline at end of file diff --git a/packages/client/src/components/NotificationDisplay.svelte b/packages/client/src/components/NotificationDisplay.svelte index e69de29bb2..2bae13bfc9 100644 --- a/packages/client/src/components/NotificationDisplay.svelte +++ b/packages/client/src/components/NotificationDisplay.svelte @@ -0,0 +1,58 @@ + + +
+ {#each $notifications as notification (notification.id)} +
+
{notification.message}
+ {#if notification.icon}{/if} +
+ {/each} +
+ + + \ No newline at end of file diff --git a/packages/standard-components/src/Icon.svelte b/packages/standard-components/src/Icon.svelte index 8b5db301a6..d175bfd6b0 100644 --- a/packages/standard-components/src/Icon.svelte +++ b/packages/standard-components/src/Icon.svelte @@ -3,9 +3,6 @@ const { styleable } = getContext("sdk") const component = getContext("component") - const notification = getContext("notification") - - $: console.log($notification) export let icon = "" export let size = "fa-lg" @@ -20,8 +17,4 @@ - - \ No newline at end of file + class="{icon} {size}" /> \ No newline at end of file