@hed-hog/core 0.0.286 → 0.0.291
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,7 +24,7 @@ export default function PreferencesPage() {
|
|
|
24
24
|
const {
|
|
25
25
|
currentTheme,
|
|
26
26
|
setCurrentTheme,
|
|
27
|
-
|
|
27
|
+
refetchUser,
|
|
28
28
|
request,
|
|
29
29
|
getSettingValue,
|
|
30
30
|
setSettingValue,
|
|
@@ -84,10 +84,10 @@ export default function PreferencesPage() {
|
|
|
84
84
|
method: 'PUT',
|
|
85
85
|
data: { theme: value },
|
|
86
86
|
});
|
|
87
|
-
await
|
|
87
|
+
await refetchUser();
|
|
88
88
|
} catch (error) {
|
|
89
89
|
setCurrentTheme(previousTheme);
|
|
90
|
-
await
|
|
90
|
+
await refetchUser();
|
|
91
91
|
showToastHandler(
|
|
92
92
|
'error',
|
|
93
93
|
t('themeUpdateError') || 'Failed to update theme'
|
|
@@ -102,7 +102,7 @@ export default function PreferencesPage() {
|
|
|
102
102
|
method: 'PUT',
|
|
103
103
|
data: { language: code },
|
|
104
104
|
});
|
|
105
|
-
await
|
|
105
|
+
await refetchUser();
|
|
106
106
|
} catch (error) {
|
|
107
107
|
showToastHandler(
|
|
108
108
|
'error',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.291",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"sharp": "^0.34.2",
|
|
31
31
|
"speakeasy": "^2.0.0",
|
|
32
32
|
"uuid": "^11.1.0",
|
|
33
|
-
"@hed-hog/api-pagination": "0.0.6",
|
|
34
33
|
"@hed-hog/api-types": "0.0.1",
|
|
35
|
-
"@hed-hog/api-
|
|
36
|
-
"@hed-hog/api
|
|
34
|
+
"@hed-hog/api-pagination": "0.0.6",
|
|
35
|
+
"@hed-hog/api": "0.0.4",
|
|
37
36
|
"@hed-hog/api-mail": "0.0.8",
|
|
38
|
-
"@hed-hog/api": "0.0.
|
|
37
|
+
"@hed-hog/api-prisma": "0.0.5",
|
|
38
|
+
"@hed-hog/api-locale": "0.0.13"
|
|
39
39
|
},
|
|
40
40
|
"exports": {
|
|
41
41
|
".": {
|