@stack-spot/portal-layout 2.4.1-rc → 2.4.1
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.4.1](https://github.com/stack-spot/portal-commons/compare/portal-layout@v2.4.0...portal-layout@v2.4.1) (2024-08-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* greater or equal 24 ([fe10477](https://github.com/stack-spot/portal-commons/commit/fe1047739060090762db4ee754dfbd6536a2c427))
|
|
9
|
+
|
|
3
10
|
## [2.4.0](https://github.com/stack-spot/portal-commons/compare/portal-layout@v2.3.2...portal-layout@v2.4.0) (2024-08-08)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -15,9 +15,9 @@ function isMoreThan24Hours(date1, date2) {
|
|
|
15
15
|
// Calculate the difference in milliseconds
|
|
16
16
|
const differenceInMilliseconds = Math.abs(timestamp2 - timestamp1);
|
|
17
17
|
// Convert milliseconds to hours
|
|
18
|
-
const differenceInHours = differenceInMilliseconds / (1000 * 60);
|
|
19
|
-
// Check if the difference is greater than 24 hours
|
|
20
|
-
return differenceInHours >=
|
|
18
|
+
const differenceInHours = differenceInMilliseconds / (1000 * 60 * 60);
|
|
19
|
+
// Check if the difference is equal or greater than 24 hours
|
|
20
|
+
return differenceInHours >= 24;
|
|
21
21
|
}
|
|
22
22
|
export function useRatingEffect(onOpenModal) {
|
|
23
23
|
const verifyShowModal = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hook.js","sourceRoot":"","sources":["../../../src/components/Rate/hook.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAE7D,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,IAAI,OAAO,CAAO,CAAC,OAA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,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAA;YAC5D,CAAC;QACH,CAAC,EAAE,IAAI,CAAC,CAAA;IACV,CAAC,CAAA;IAED,MAAM,UAAU,GAAG,KAAK,IAAI,EAAE;QAC5B,MAAM,UAAU,EAAE,CAAA;QAClB,eAAe,EAAE,CAAA;IACnB,CAAC,CAAA;IAED,aAAa,CAAC,GAAG,EAAE;QACjB,UAAU,EAAE,CAAA;IACd,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -19,10 +19,10 @@ function isMoreThan24Hours(date1: Date, date2: Date) {
|
|
|
19
19
|
const differenceInMilliseconds = Math.abs(timestamp2 - timestamp1)
|
|
20
20
|
|
|
21
21
|
// Convert milliseconds to hours
|
|
22
|
-
const differenceInHours = differenceInMilliseconds / (1000 * 60)
|
|
22
|
+
const differenceInHours = differenceInMilliseconds / (1000 * 60 * 60)
|
|
23
23
|
|
|
24
|
-
// Check if the difference is greater than 24 hours
|
|
25
|
-
return differenceInHours >=
|
|
24
|
+
// Check if the difference is equal or greater than 24 hours
|
|
25
|
+
return differenceInHours >= 24
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export function useRatingEffect(onOpenModal?: () => void) {
|