@rileybathurst/paddle 1.9.13 → 1.9.15
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 +1 -1
- package/src/paddle-location-deck.tsx +4 -0
- package/src/paddle-location.tsx +11 -7
- package/src/phone.tsx +9 -1
package/package.json
CHANGED
|
@@ -9,6 +9,10 @@ export const PaddleLocationDeck = ({
|
|
|
9
9
|
season_end,
|
|
10
10
|
phone
|
|
11
11
|
}: PaddleLocationDeckTypes) => {
|
|
12
|
+
|
|
13
|
+
// TODO: testing
|
|
14
|
+
console.log("PaddleLocationDeck phone", phone);
|
|
15
|
+
|
|
12
16
|
return (
|
|
13
17
|
<section className="location-deck">
|
|
14
18
|
{nodes.map((location: PaddleLocationTypes) => (
|
package/src/paddle-location.tsx
CHANGED
|
@@ -119,12 +119,12 @@ const Content = ({
|
|
|
119
119
|
phone,
|
|
120
120
|
}: ContentTypes) => {
|
|
121
121
|
return (
|
|
122
|
-
|
|
122
|
+
<React.Fragment>
|
|
123
123
|
<div className="svg">
|
|
124
124
|
<SVG src={svg} />
|
|
125
125
|
</div>
|
|
126
126
|
|
|
127
|
-
<div className="
|
|
127
|
+
<div className="location-details">
|
|
128
128
|
<h3>{name}</h3>
|
|
129
129
|
|
|
130
130
|
{streetAddress ||
|
|
@@ -161,7 +161,7 @@ const Content = ({
|
|
|
161
161
|
<Phone phone={phone} />
|
|
162
162
|
)}
|
|
163
163
|
</div>
|
|
164
|
-
|
|
164
|
+
</React.Fragment>
|
|
165
165
|
);
|
|
166
166
|
};
|
|
167
167
|
|
|
@@ -186,6 +186,10 @@ export const PaddleLocation = ({
|
|
|
186
186
|
|
|
187
187
|
const phoneDidgits = Number(phone);
|
|
188
188
|
|
|
189
|
+
|
|
190
|
+
// TODO: testing
|
|
191
|
+
console.log("PaddleLocation phone", phone);
|
|
192
|
+
|
|
189
193
|
const content = (
|
|
190
194
|
<Content
|
|
191
195
|
svg={svg}
|
|
@@ -206,7 +210,7 @@ export const PaddleLocation = ({
|
|
|
206
210
|
);
|
|
207
211
|
|
|
208
212
|
return link.includes("http") ? (
|
|
209
|
-
<
|
|
213
|
+
<div className={`location-wrapper ${phone ? 'phone-spacer' : ''}`}>
|
|
210
214
|
<a
|
|
211
215
|
href={link}
|
|
212
216
|
className="location"
|
|
@@ -219,15 +223,15 @@ export const PaddleLocation = ({
|
|
|
219
223
|
{phone && (
|
|
220
224
|
<Phone phone={phoneDidgits} />
|
|
221
225
|
)}
|
|
222
|
-
</
|
|
226
|
+
</div>
|
|
223
227
|
) : (
|
|
224
|
-
<
|
|
228
|
+
<div className={`location-wrapper ${phone ? 'phone-spacer' : ''}`}>
|
|
225
229
|
<Link to={link} className="location">
|
|
226
230
|
{content}
|
|
227
231
|
</Link>
|
|
228
232
|
{phone && (
|
|
229
233
|
<Phone phone={phoneDidgits} />
|
|
230
234
|
)}
|
|
231
|
-
</
|
|
235
|
+
</div>
|
|
232
236
|
);
|
|
233
237
|
};
|
package/src/phone.tsx
CHANGED
|
@@ -18,8 +18,16 @@ type PhoneTypes = {
|
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
const Phone = ({ phone }: PhoneTypes) => {
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
// TODO: testing
|
|
24
|
+
console.log("phone", phone);
|
|
25
|
+
|
|
21
26
|
return (
|
|
22
|
-
<a href={`tel:${phone}`}
|
|
27
|
+
<a href={`tel:${phone}`}
|
|
28
|
+
rel="noopener noreferrer"
|
|
29
|
+
className="button location-phone"
|
|
30
|
+
>
|
|
23
31
|
Phone: <FormatPhoneNumber phoneNumberString={phone} />
|
|
24
32
|
</a>
|
|
25
33
|
);
|