@rileybathurst/paddle 1.0.12 → 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">
|
|
@@ -313,9 +320,12 @@ export const PaddleLocationCard = ({
|
|
|
313
320
|
season_start,
|
|
314
321
|
season_end,
|
|
315
322
|
phone,
|
|
323
|
+
phoneNumber,
|
|
316
324
|
offSeasonDetails,
|
|
325
|
+
weatherPermitting
|
|
317
326
|
}: PaddleLocationCardTypes) => {
|
|
318
|
-
|
|
327
|
+
|
|
328
|
+
const phoneDidgits = Number(phoneNumber);
|
|
319
329
|
|
|
320
330
|
if (phone) {
|
|
321
331
|
return (
|
|
@@ -336,7 +346,8 @@ export const PaddleLocationCard = ({
|
|
|
336
346
|
season_start={season_start}
|
|
337
347
|
season_end={season_end}
|
|
338
348
|
offSeasonDetails={offSeasonDetails}
|
|
339
|
-
phoneNumber={
|
|
349
|
+
phoneNumber={phoneDidgits}
|
|
350
|
+
weatherPermitting={weatherPermitting}
|
|
340
351
|
/>
|
|
341
352
|
</div>
|
|
342
353
|
);
|
|
@@ -366,6 +377,7 @@ export const PaddleLocationCard = ({
|
|
|
366
377
|
season_start={season_start}
|
|
367
378
|
season_end={season_end}
|
|
368
379
|
offSeasonDetails={offSeasonDetails}
|
|
380
|
+
weatherPermitting={weatherPermitting}
|
|
369
381
|
/>
|
|
370
382
|
</a>
|
|
371
383
|
);
|
|
@@ -387,6 +399,7 @@ export const PaddleLocationCard = ({
|
|
|
387
399
|
season_start={season_start}
|
|
388
400
|
season_end={season_end}
|
|
389
401
|
offSeasonDetails={offSeasonDetails}
|
|
402
|
+
weatherPermitting={weatherPermitting}
|
|
390
403
|
/>
|
|
391
404
|
</Link>
|
|
392
405
|
);
|
package/src/styles/layout.css
CHANGED