@ledvance/base 1.1.11 → 1.1.12
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.
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import {DevInfo, DpValue} from 'tuya-panel-kit'
|
|
|
6
6
|
import {NativeApi} from '../../api/native'
|
|
7
7
|
import {useDispatch} from 'react-redux'
|
|
8
8
|
import {GlobalParams} from '../GlobalParams'
|
|
9
|
-
import {
|
|
9
|
+
import {snakeCase} from 'lodash'
|
|
10
10
|
|
|
11
11
|
export interface NativeProps {
|
|
12
12
|
familyName: string
|
|
@@ -227,7 +227,7 @@ export function useGroupConfigFeature<GC, GCPT extends { [K in keyof GC]: GC[K]
|
|
|
227
227
|
const setGroupConfigFeature = async (value: GCPT) => {
|
|
228
228
|
return await setGroupConfig(
|
|
229
229
|
{
|
|
230
|
-
[GlobalParams.dpSchemaMap[
|
|
230
|
+
[GlobalParams.dpSchemaMap[snakeCase(key as string)].dp]: value,
|
|
231
231
|
...extraDps,
|
|
232
232
|
},
|
|
233
233
|
{
|