@admin-layout/client 12.2.1-alpha.3 → 12.2.3-alpha.10
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLayoutSettings.d.ts","sourceRoot":"","sources":["../../src/hooks/useLayoutSettings.ts"],"names":[],"mappings":"AAOA,wBAAgB,iBAAiB;;0BAgDV,GAAG,0BAA0B,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;
|
|
1
|
+
{"version":3,"file":"useLayoutSettings.d.ts","sourceRoot":"","sources":["../../src/hooks/useLayoutSettings.ts"],"names":[],"mappings":"AAOA,wBAAgB,iBAAiB;;0BAgDV,GAAG,0BAA0B,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;EAgEtE"}
|
|
@@ -72,10 +72,14 @@ import {useParams}from'@remix-run/react';import {useCallback}from'react';import
|
|
|
72
72
|
throw new Error('Failed to update settings');
|
|
73
73
|
}
|
|
74
74
|
// 4. update redux
|
|
75
|
-
|
|
75
|
+
let payloadToDispatch = currentChangedSetting;
|
|
76
|
+
const keys = Object.keys(currentChangedSetting);
|
|
77
|
+
if (keys.length === 1 && keys[0].includes('[')) {
|
|
78
|
+
payloadToDispatch = currentChangedSetting[keys[0]];
|
|
79
|
+
}
|
|
76
80
|
dispatch({
|
|
77
81
|
type: CHANGE_SETTINGS_ACTION,
|
|
78
|
-
payload:
|
|
82
|
+
payload: payloadToDispatch,
|
|
79
83
|
});
|
|
80
84
|
}
|
|
81
85
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLayoutSettings.js","sources":["../../src/hooks/useLayoutSettings.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLayoutSettings.js","sources":["../../src/hooks/useLayoutSettings.ts"],"sourcesContent":[null],"names":[],"mappings":"uMAuHC,SAAA,iBAAA,GAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admin-layout/client",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.3-alpha.10",
|
|
4
4
|
"description": "Sample client for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"serialize-error": "^8.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"common": "12.2.
|
|
29
|
+
"common": "12.2.3-alpha.10",
|
|
30
30
|
"rc-menu": "^9.16.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"typescript": {
|
|
45
45
|
"definition": "lib/index.d.ts"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "082a7df73e11db9f1d317d12758fba7fa125f6e9"
|
|
48
48
|
}
|