switches context to use sdk instead of it's own context

This commit is contained in:
Keviin Åberg Kultalahti 2021-01-25 08:43:28 +01:00
parent 73b2a775aa
commit 2a9ae62834
3 changed files with 2 additions and 3 deletions

View File

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

View File

@ -2,7 +2,7 @@
import { flip } from 'svelte/animate';
import { fly } from "svelte/transition"
import { getContext } from "svelte"
const notifications = getContext("notifications")
const { notifications } = getContext("sdk")
export let themes = {
danger: "#E26D69",

View File

@ -13,7 +13,7 @@ import DataProvider from "./components/DataProvider.svelte"
export default {
API,
authStore,
notificationStore,
notifications: notificationStore,
routeStore,
screenStore,
styleable,