@rileybathurst/paddle 1.0.10 → 1.0.11
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
|
@@ -117,7 +117,7 @@ interface ContentTypes {
|
|
|
117
117
|
season_end?: string;
|
|
118
118
|
|
|
119
119
|
offSeasonDetails?: string;
|
|
120
|
-
|
|
120
|
+
phoneNumber?: number;
|
|
121
121
|
|
|
122
122
|
streetAddress?: string;
|
|
123
123
|
addressLocality?: string;
|
|
@@ -129,7 +129,6 @@ const PhoneContent = ({
|
|
|
129
129
|
link,
|
|
130
130
|
svg,
|
|
131
131
|
name,
|
|
132
|
-
address,
|
|
133
132
|
description,
|
|
134
133
|
opening_time,
|
|
135
134
|
closing_time,
|
|
@@ -141,7 +140,7 @@ const PhoneContent = ({
|
|
|
141
140
|
season_start,
|
|
142
141
|
season_end,
|
|
143
142
|
offSeasonDetails,
|
|
144
|
-
|
|
143
|
+
phoneNumber,
|
|
145
144
|
}: ContentTypes) => {
|
|
146
145
|
return (
|
|
147
146
|
<>
|
|
@@ -156,9 +155,11 @@ const PhoneContent = ({
|
|
|
156
155
|
<div className="svg" dangerouslySetInnerHTML={{ __html: svg }} />
|
|
157
156
|
</a>
|
|
158
157
|
) : (
|
|
159
|
-
|
|
160
|
-
<
|
|
161
|
-
|
|
158
|
+
link && (
|
|
159
|
+
<Link to={link} className="location">
|
|
160
|
+
<div className="svg" dangerouslySetInnerHTML={{ __html: svg }} />
|
|
161
|
+
</Link>
|
|
162
|
+
)
|
|
162
163
|
)}
|
|
163
164
|
|
|
164
165
|
<div>
|
|
@@ -173,11 +174,15 @@ const PhoneContent = ({
|
|
|
173
174
|
<h3>{name}</h3>
|
|
174
175
|
</a>
|
|
175
176
|
) : (
|
|
176
|
-
|
|
177
|
-
<
|
|
178
|
-
|
|
177
|
+
link && (
|
|
178
|
+
<Link to={link} title={name}>
|
|
179
|
+
<h3>{name}</h3>
|
|
180
|
+
</Link>
|
|
181
|
+
)
|
|
182
|
+
)}
|
|
183
|
+
{phoneNumber && (
|
|
184
|
+
<Phone phone={phoneNumber} />
|
|
179
185
|
)}
|
|
180
|
-
<Phone phone={phone} />
|
|
181
186
|
</div>
|
|
182
187
|
|
|
183
188
|
{streetAddress ||
|
|
@@ -202,15 +207,17 @@ const PhoneContent = ({
|
|
|
202
207
|
/>
|
|
203
208
|
</a>
|
|
204
209
|
) : (
|
|
205
|
-
|
|
206
|
-
<
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
link && (
|
|
211
|
+
<Link to={link} title={name}>
|
|
212
|
+
<Place
|
|
213
|
+
commonName={commonName}
|
|
214
|
+
streetAddress={streetAddress}
|
|
215
|
+
addressLocality={addressLocality}
|
|
216
|
+
addressRegion={addressRegion}
|
|
217
|
+
postalCode={postalCode}
|
|
218
|
+
/>
|
|
219
|
+
</Link>
|
|
220
|
+
)
|
|
214
221
|
)
|
|
215
222
|
) : null}
|
|
216
223
|
|
|
@@ -236,7 +243,6 @@ const PhoneContent = ({
|
|
|
236
243
|
const Content = ({
|
|
237
244
|
svg,
|
|
238
245
|
name,
|
|
239
|
-
address,
|
|
240
246
|
description,
|
|
241
247
|
opening_time,
|
|
242
248
|
closing_time,
|
|
@@ -330,7 +336,7 @@ export const PaddleLocationCard = ({
|
|
|
330
336
|
season_start={season_start}
|
|
331
337
|
season_end={season_end}
|
|
332
338
|
offSeasonDetails={offSeasonDetails}
|
|
333
|
-
|
|
339
|
+
phoneNumber={phoneNumber}
|
|
334
340
|
/>
|
|
335
341
|
</div>
|
|
336
342
|
);
|
|
@@ -13,19 +13,17 @@ export const PaddleLocationDeck = ({
|
|
|
13
13
|
nodes,
|
|
14
14
|
season_start,
|
|
15
15
|
season_end,
|
|
16
|
-
phone
|
|
17
|
-
background,
|
|
16
|
+
phone
|
|
18
17
|
}: LocationDeckTypes) => {
|
|
19
18
|
return (
|
|
20
19
|
<section className="location-deck">
|
|
21
20
|
{nodes.map((location: PaddleLocationCardTypes) => (
|
|
22
21
|
<PaddleLocationCard
|
|
23
22
|
key={location.id}
|
|
24
|
-
{...location}
|
|
25
|
-
background={background}
|
|
26
23
|
season_start={season_start}
|
|
27
24
|
season_end={season_end}
|
|
28
|
-
|
|
25
|
+
phoneNumber={phone}
|
|
26
|
+
{...location}
|
|
29
27
|
/>
|
|
30
28
|
))}
|
|
31
29
|
</section>
|
package/src/styles/lists.css
CHANGED
package/src/styles/media.css
CHANGED