1
0
Fork 0
mirror of synced 2024-10-02 18:16:29 +13:00

minor fixes

This commit is contained in:
Keviin Åberg Kultalahti 2021-01-22 12:44:23 +01:00
parent e411ac5b3d
commit bafd229716
3 changed files with 3 additions and 11 deletions

View file

@ -10,7 +10,7 @@
setContext("sdk", SDK)
setContext("component", writable({}))
setContext("data", createDataStore())
setContext("notification", notificationStore)
setContext("notifications", notificationStore)
setContext("screenslot", false)
let loaded = false

View file

@ -1,7 +1,7 @@
<script>
import { fly } from "svelte/transition"
import { getContext } from "svelte"
const notifications = getContext("notification")
const notifications = getContext("notifications")
export let themes = {
danger: "#E26D69",

View file

@ -44,11 +44,3 @@ const createNotificationStore = () => {
}
export const notificationStore = createNotificationStore()
// setTimeout(() => {
// notificationStore.update(state => {
// state.notifications.shift()
// state.notifications = state.notifications
// return state
// })
// }, timeout)