@rileybathurst/paddle 0.0.102 → 0.0.103
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
|
@@ -29,14 +29,14 @@ function Season({ name, season_start, season_end, opening_time, closing_time }:
|
|
|
29
29
|
const seasonEndDate = new Date(season_end);
|
|
30
30
|
console.log(`season_end ${season_end}`);
|
|
31
31
|
|
|
32
|
-
|
|
33
32
|
if (currentDay > seasonStartDate || currentDay < seasonEndDate) {
|
|
34
33
|
return (
|
|
35
34
|
<p>
|
|
36
|
-
{opening_time ? "Open Daily: " : null}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
{opening_time ? "Open Daily: " : null}<br />
|
|
36
|
+
{opening_time && closing_time ? (
|
|
37
|
+
<span><HourMin time={opening_time} /> - <HourMin time={closing_time} /></span>
|
|
38
|
+
)
|
|
39
|
+
: null}
|
|
40
40
|
</p>
|
|
41
41
|
)
|
|
42
42
|
}
|
|
@@ -108,17 +108,20 @@ function Content({ svg, name, address, description, opening_time, closing_time,
|
|
|
108
108
|
</div>
|
|
109
109
|
|
|
110
110
|
<div>
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
111
|
+
|
|
112
|
+
{opening_time && closing_time ? (
|
|
113
|
+
<Season
|
|
114
|
+
season_start={season_start}
|
|
115
|
+
season_end={season_end}
|
|
116
|
+
opening_time={opening_time}
|
|
117
|
+
closing_time={closing_time}
|
|
118
|
+
name={name}
|
|
119
|
+
/>
|
|
120
|
+
) : (
|
|
121
|
+
<Markdown className="react-markdown" >
|
|
122
|
+
{description.data.description}
|
|
123
|
+
</Markdown>
|
|
124
|
+
)}
|
|
122
125
|
{/* // TODO: add phone but dont break the link on link rule {name === "On Water Rental" ? <Phone /> : null} */}
|
|
123
126
|
</div>
|
|
124
127
|
</>
|
|
@@ -10,10 +10,6 @@ interface LocationDeckTypes {
|
|
|
10
10
|
}
|
|
11
11
|
export function PaddleLocationDeck({ nodes, season_start, season_end, background }: LocationDeckTypes) {
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
console.log('🦄');
|
|
15
|
-
console.log(season_start);
|
|
16
|
-
|
|
17
13
|
return (
|
|
18
14
|
<section className="location-deck">
|
|
19
15
|
{nodes.map((location: LocationCardTypes) => (
|