@rileybathurst/paddle 1.0.13 → 1.0.14
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
|
@@ -18,7 +18,7 @@ type PlaceTypes = {
|
|
|
18
18
|
const Place = ({ commonName, streetAddress, addressLocality, addressRegion, postalCode }: PlaceTypes) => {
|
|
19
19
|
return (
|
|
20
20
|
<address>
|
|
21
|
-
{commonName ? (<>{commonName}, </>) : null}
|
|
21
|
+
{commonName ? (<>{commonName}, </>) : null}
|
|
22
22
|
{streetAddress ? (<>{streetAddress}, </>) : null}
|
|
23
23
|
{addressLocality ? (<>{addressLocality}, </>) : null}
|
|
24
24
|
{addressRegion ? (<>{addressRegion}, </>) : null}
|
|
@@ -35,6 +35,7 @@ interface SeasonTypes {
|
|
|
35
35
|
closing_time: string;
|
|
36
36
|
name: string;
|
|
37
37
|
offSeasonDetails?: string;
|
|
38
|
+
weatherPermitting?: boolean;
|
|
38
39
|
}
|
|
39
40
|
const Season = ({
|
|
40
41
|
name,
|
|
@@ -43,6 +44,7 @@ const Season = ({
|
|
|
43
44
|
opening_time,
|
|
44
45
|
closing_time,
|
|
45
46
|
offSeasonDetails,
|
|
47
|
+
weatherPermitting
|
|
46
48
|
}: SeasonTypes) => {
|
|
47
49
|
// TODO: these need a query but thats not the most important first step
|
|
48
50
|
if (
|
|
@@ -65,7 +67,7 @@ const Season = ({
|
|
|
65
67
|
{opening_time && closing_time ? (
|
|
66
68
|
<><HourMin time={opening_time} /> - <HourMin time={closing_time} /> </>
|
|
67
69
|
) : null}
|
|
68
|
-
Weather Permitting
|
|
70
|
+
{weatherPermitting ? "Weather Permitting" : null}
|
|
69
71
|
</p>
|
|
70
72
|
);
|
|
71
73
|
}
|
|
@@ -118,6 +120,7 @@ interface ContentTypes {
|
|
|
118
120
|
|
|
119
121
|
offSeasonDetails?: string;
|
|
120
122
|
phoneNumber?: number;
|
|
123
|
+
weatherPermitting?: boolean;
|
|
121
124
|
|
|
122
125
|
streetAddress?: string;
|
|
123
126
|
addressLocality?: string;
|
|
@@ -141,6 +144,7 @@ const PhoneContent = ({
|
|
|
141
144
|
season_end,
|
|
142
145
|
offSeasonDetails,
|
|
143
146
|
phoneNumber,
|
|
147
|
+
weatherPermitting
|
|
144
148
|
}: ContentTypes) => {
|
|
145
149
|
return (
|
|
146
150
|
<>
|
|
@@ -229,6 +233,7 @@ const PhoneContent = ({
|
|
|
229
233
|
closing_time={closing_time}
|
|
230
234
|
name={name}
|
|
231
235
|
offSeasonDetails={offSeasonDetails}
|
|
236
|
+
weatherPermitting={weatherPermitting}
|
|
232
237
|
/>
|
|
233
238
|
) : (
|
|
234
239
|
<div className="react-markdown">
|
|
@@ -251,6 +256,7 @@ const Content = ({
|
|
|
251
256
|
addressRegion,
|
|
252
257
|
postalCode,
|
|
253
258
|
commonName,
|
|
259
|
+
weatherPermitting,
|
|
254
260
|
season_start,
|
|
255
261
|
season_end,
|
|
256
262
|
offSeasonDetails,
|
|
@@ -286,6 +292,7 @@ const Content = ({
|
|
|
286
292
|
closing_time={closing_time}
|
|
287
293
|
name={name}
|
|
288
294
|
offSeasonDetails={offSeasonDetails}
|
|
295
|
+
weatherPermitting={weatherPermitting}
|
|
289
296
|
/>
|
|
290
297
|
) : (
|
|
291
298
|
<div className="react-markdown">
|
|
@@ -315,6 +322,7 @@ export const PaddleLocationCard = ({
|
|
|
315
322
|
phone,
|
|
316
323
|
phoneNumber,
|
|
317
324
|
offSeasonDetails,
|
|
325
|
+
weatherPermitting
|
|
318
326
|
}: PaddleLocationCardTypes) => {
|
|
319
327
|
|
|
320
328
|
const phoneDidgits = Number(phoneNumber);
|
|
@@ -339,6 +347,7 @@ export const PaddleLocationCard = ({
|
|
|
339
347
|
season_end={season_end}
|
|
340
348
|
offSeasonDetails={offSeasonDetails}
|
|
341
349
|
phoneNumber={phoneDidgits}
|
|
350
|
+
weatherPermitting={weatherPermitting}
|
|
342
351
|
/>
|
|
343
352
|
</div>
|
|
344
353
|
);
|
|
@@ -368,6 +377,7 @@ export const PaddleLocationCard = ({
|
|
|
368
377
|
season_start={season_start}
|
|
369
378
|
season_end={season_end}
|
|
370
379
|
offSeasonDetails={offSeasonDetails}
|
|
380
|
+
weatherPermitting={weatherPermitting}
|
|
371
381
|
/>
|
|
372
382
|
</a>
|
|
373
383
|
);
|
|
@@ -389,6 +399,7 @@ export const PaddleLocationCard = ({
|
|
|
389
399
|
season_start={season_start}
|
|
390
400
|
season_end={season_end}
|
|
391
401
|
offSeasonDetails={offSeasonDetails}
|
|
402
|
+
weatherPermitting={weatherPermitting}
|
|
392
403
|
/>
|
|
393
404
|
</Link>
|
|
394
405
|
);
|