switches context to use sdk instead of it's own context
This commit is contained in:
parent
73b2a775aa
commit
2a9ae62834
|
@ -10,7 +10,6 @@
|
|||
setContext("sdk", SDK)
|
||||
setContext("component", writable({}))
|
||||
setContext("data", createDataStore())
|
||||
setContext("notifications", notificationStore)
|
||||
setContext("screenslot", false)
|
||||
|
||||
let loaded = false
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -13,7 +13,7 @@ import DataProvider from "./components/DataProvider.svelte"
|
|||
export default {
|
||||
API,
|
||||
authStore,
|
||||
notificationStore,
|
||||
notifications: notificationStore,
|
||||
routeStore,
|
||||
screenStore,
|
||||
styleable,
|
||||
|
|
Loading…
Reference in New Issue