@performant-software/semantic-components 0.5.20-beta.3 → 0.5.20-beta.4
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": "0.5.20-beta.
|
|
3
|
+
"version": "0.5.20-beta.4",
|
|
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": "^0.5.20-beta.
|
|
15
|
+
"@performant-software/shared-components": "^0.5.20-beta.4",
|
|
16
16
|
"@react-google-maps/api": "^2.8.1",
|
|
17
17
|
"axios": "^0.26.1",
|
|
18
18
|
"i18next": "^19.4.4",
|
|
@@ -98,11 +98,14 @@ const HorizontalCards = (props: Props) => {
|
|
|
98
98
|
useEffect(() => {
|
|
99
99
|
window.addEventListener('resize', initialize);
|
|
100
100
|
|
|
101
|
-
initialize();
|
|
102
|
-
|
|
103
101
|
return () => window.removeEventListener('resize', initialize);
|
|
104
102
|
}, []);
|
|
105
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Re-initialize the component if the items change.
|
|
106
|
+
*/
|
|
107
|
+
useEffect(() => initialize(), [initialize, props.items]);
|
|
108
|
+
|
|
106
109
|
/**
|
|
107
110
|
* Sets the total number of pages on the state.
|
|
108
111
|
*/
|
|
@@ -98,11 +98,14 @@ const HorizontalCards = (props: Props) => {
|
|
|
98
98
|
useEffect(() => {
|
|
99
99
|
window.addEventListener('resize', initialize);
|
|
100
100
|
|
|
101
|
-
initialize();
|
|
102
|
-
|
|
103
101
|
return () => window.removeEventListener('resize', initialize);
|
|
104
102
|
}, []);
|
|
105
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Re-initialize the component if the items change.
|
|
106
|
+
*/
|
|
107
|
+
useEffect(() => initialize(), [initialize, props.items]);
|
|
108
|
+
|
|
106
109
|
/**
|
|
107
110
|
* Sets the total number of pages on the state.
|
|
108
111
|
*/
|