@bbl-digital/snorre 4.0.0-alpha.2 → 4.0.0-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
package/dist/bundle.js
CHANGED
@@ -45,12 +45,15 @@
|
|
45
45
|
const pglobal = fetch(`${themeUrl}/globals.css`);
|
46
46
|
const [styles, global] = await Promise.all([pstyle, pglobal]);
|
47
47
|
setTheme(styles.json());
|
48
|
-
setGlobals(global
|
48
|
+
setGlobals(global);
|
49
49
|
};
|
50
50
|
|
51
51
|
getThemeStuff(themeUrl);
|
52
52
|
}, [themeUrl]);
|
53
53
|
React.useEffect(() => {
|
54
|
+
console.log(theme);
|
55
|
+
console.log(globals);
|
56
|
+
|
54
57
|
if (theme) {
|
55
58
|
setAppTheme(initTheme(theme, defaultTextColor));
|
56
59
|
}
|
@@ -14,12 +14,15 @@ const useSnorreTheme = ({
|
|
14
14
|
const pglobal = fetch(`${themeUrl}/globals.css`);
|
15
15
|
const [styles, global] = await Promise.all([pstyle, pglobal]);
|
16
16
|
setTheme(styles.json());
|
17
|
-
setGlobals(global
|
17
|
+
setGlobals(global);
|
18
18
|
};
|
19
19
|
|
20
20
|
getThemeStuff(themeUrl);
|
21
21
|
}, [themeUrl]);
|
22
22
|
useEffect(() => {
|
23
|
+
console.log(theme);
|
24
|
+
console.log(globals);
|
25
|
+
|
23
26
|
if (theme) {
|
24
27
|
setAppTheme(initTheme(theme, defaultTextColor));
|
25
28
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useSnorreTheme.d.ts","sourceRoot":"","sources":["../../src/packages/utils/useSnorreTheme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAa,MAAM,oBAAoB,CAAA;AAEzD,aAAK,KAAK,GAAG;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,cAAc,mCAAoC,KAAK;;;
|
1
|
+
{"version":3,"file":"useSnorreTheme.d.ts","sourceRoot":"","sources":["../../src/packages/utils/useSnorreTheme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAa,MAAM,oBAAoB,CAAA;AAEzD,aAAK,KAAK,GAAG;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,cAAc,mCAAoC,KAAK;;;CA+B5D,CAAA;AACD,eAAe,cAAc,CAAA"}
|
@@ -14,12 +14,15 @@ const useSnorreTheme = ({
|
|
14
14
|
const pglobal = fetch(`${themeUrl}/globals.css`);
|
15
15
|
const [styles, global] = await Promise.all([pstyle, pglobal]);
|
16
16
|
setTheme(styles.json());
|
17
|
-
setGlobals(global
|
17
|
+
setGlobals(global);
|
18
18
|
};
|
19
19
|
|
20
20
|
getThemeStuff(themeUrl);
|
21
21
|
}, [themeUrl]);
|
22
22
|
useEffect(() => {
|
23
|
+
console.log(theme);
|
24
|
+
console.log(globals);
|
25
|
+
|
23
26
|
if (theme) {
|
24
27
|
setAppTheme(initTheme(theme, defaultTextColor));
|
25
28
|
}
|