@rileybathurst/paddle 0.0.96 → 0.0.98
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
|
@@ -21,10 +21,13 @@ function Season({ name, season_start, season_end, opening_time, closing_time }:
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const currentDay = new Date();
|
|
24
|
+
console.log(`currentDay ${currentDay}`);
|
|
24
25
|
const seasonStartDate = new Date(season_start);
|
|
26
|
+
console.log(`season_start ${season_start}`);
|
|
25
27
|
const seasonEndDate = new Date(season_end);
|
|
28
|
+
console.log(`season_end ${season_end}`);
|
|
26
29
|
|
|
27
|
-
if (currentDay
|
|
30
|
+
if (currentDay > seasonStartDate || currentDay < seasonEndDate) {
|
|
28
31
|
return (
|
|
29
32
|
<p>
|
|
30
33
|
{opening_time ? "Open Daily: " : null}
|
|
@@ -72,7 +75,7 @@ interface ContentTypes {
|
|
|
72
75
|
commonName?: string;
|
|
73
76
|
|
|
74
77
|
}
|
|
75
|
-
function Content({ svg, name, address, description, opening_time, closing_time, streetAddress, addressLocality, addressRegion, postalCode, commonName }: ContentTypes) {
|
|
78
|
+
function Content({ svg, name, address, description, opening_time, closing_time, streetAddress, addressLocality, addressRegion, postalCode, commonName, season_start, season_end }: ContentTypes) {
|
|
76
79
|
return (
|
|
77
80
|
<>
|
|
78
81
|
<div
|
|
@@ -103,8 +106,8 @@ function Content({ svg, name, address, description, opening_time, closing_time,
|
|
|
103
106
|
|
|
104
107
|
<div>
|
|
105
108
|
<Season
|
|
106
|
-
season_start={
|
|
107
|
-
season_end={
|
|
109
|
+
season_start={season_start}
|
|
110
|
+
season_end={season_end}
|
|
108
111
|
opening_time={opening_time}
|
|
109
112
|
closing_time={closing_time}
|
|
110
113
|
name={name}
|