@performant-software/semantic-components 1.0.12-beta.3 → 1.0.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@performant-software/semantic-components",
|
|
3
|
-
"version": "1.0.12
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "A package of shared components based on the Semantic UI Framework.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./build/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"build": "webpack --mode production && flow-copy-source -v src types"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@performant-software/shared-components": "^1.0.12
|
|
15
|
+
"@performant-software/shared-components": "^1.0.12",
|
|
16
16
|
"@react-google-maps/api": "^2.8.1",
|
|
17
17
|
"axios": "^0.26.1",
|
|
18
18
|
"i18next": "^19.4.4",
|
|
@@ -213,12 +213,12 @@ const FileUploadModal: ComponentType<any> = (props: Props) => {
|
|
|
213
213
|
/**
|
|
214
214
|
* Sets the passed item onto the state.
|
|
215
215
|
*
|
|
216
|
-
* @type {function(*): void}
|
|
216
|
+
* @type {function(*, *): void}
|
|
217
217
|
*/
|
|
218
|
-
const onSetState = useCallback((item: any) => (
|
|
218
|
+
const onSetState = useCallback((item: any, attributes: string) => (
|
|
219
219
|
setItems((prevItems) => _.map(prevItems, (i) => (i !== item ? i : {
|
|
220
220
|
...i,
|
|
221
|
-
...
|
|
221
|
+
...attributes,
|
|
222
222
|
errors: []
|
|
223
223
|
})))
|
|
224
224
|
), []);
|
|
@@ -213,12 +213,12 @@ const FileUploadModal: ComponentType<any> = (props: Props) => {
|
|
|
213
213
|
/**
|
|
214
214
|
* Sets the passed item onto the state.
|
|
215
215
|
*
|
|
216
|
-
* @type {function(*): void}
|
|
216
|
+
* @type {function(*, *): void}
|
|
217
217
|
*/
|
|
218
|
-
const onSetState = useCallback((item: any) => (
|
|
218
|
+
const onSetState = useCallback((item: any, attributes: string) => (
|
|
219
219
|
setItems((prevItems) => _.map(prevItems, (i) => (i !== item ? i : {
|
|
220
220
|
...i,
|
|
221
|
-
...
|
|
221
|
+
...attributes,
|
|
222
222
|
errors: []
|
|
223
223
|
})))
|
|
224
224
|
), []);
|