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("sdk", SDK)
|
||||||
setContext("component", writable({}))
|
setContext("component", writable({}))
|
||||||
setContext("data", createDataStore())
|
setContext("data", createDataStore())
|
||||||
setContext("notifications", notificationStore)
|
|
||||||
setContext("screenslot", false)
|
setContext("screenslot", false)
|
||||||
|
|
||||||
let loaded = false
|
let loaded = false
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import { flip } from 'svelte/animate';
|
import { flip } from 'svelte/animate';
|
||||||
import { fly } from "svelte/transition"
|
import { fly } from "svelte/transition"
|
||||||
import { getContext } from "svelte"
|
import { getContext } from "svelte"
|
||||||
const notifications = getContext("notifications")
|
const { notifications } = getContext("sdk")
|
||||||
|
|
||||||
export let themes = {
|
export let themes = {
|
||||||
danger: "#E26D69",
|
danger: "#E26D69",
|
||||||
|
|
|
@ -13,7 +13,7 @@ import DataProvider from "./components/DataProvider.svelte"
|
||||||
export default {
|
export default {
|
||||||
API,
|
API,
|
||||||
authStore,
|
authStore,
|
||||||
notificationStore,
|
notifications: notificationStore,
|
||||||
routeStore,
|
routeStore,
|
||||||
screenStore,
|
screenStore,
|
||||||
styleable,
|
styleable,
|
||||||
|
|
Loading…
Reference in New Issue