1
0
Fork 0
mirror of synced 2024-06-29 19:41:03 +12:00

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 37c2b51095
commit 60330185fa
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,