@rileybathurst/paddle 1.9.13 → 1.9.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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rileybathurst/paddle",
3
3
  "private": false,
4
- "version": "1.9.13",
4
+ "version": "1.9.14",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "tsc --noEmit && stay-gold && vite",
@@ -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="location_details">
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
 
@@ -206,7 +206,7 @@ export const PaddleLocation = ({
206
206
  );
207
207
 
208
208
  return link.includes("http") ? (
209
- <React.Fragment>
209
+ <div className={`location-wrapper ${phone ? 'phone-spacer' : ''}`}>
210
210
  <a
211
211
  href={link}
212
212
  className="location"
@@ -219,15 +219,15 @@ export const PaddleLocation = ({
219
219
  {phone && (
220
220
  <Phone phone={phoneDidgits} />
221
221
  )}
222
- </React.Fragment>
222
+ </div>
223
223
  ) : (
224
- <React.Fragment>
224
+ <div className={`location-wrapper ${phone ? 'phone-spacer' : ''}`}>
225
225
  <Link to={link} className="location">
226
226
  {content}
227
227
  </Link>
228
228
  {phone && (
229
229
  <Phone phone={phoneDidgits} />
230
230
  )}
231
- </React.Fragment>
231
+ </div>
232
232
  );
233
233
  };
package/src/phone.tsx CHANGED
@@ -19,7 +19,10 @@ type PhoneTypes = {
19
19
 
20
20
  const Phone = ({ phone }: PhoneTypes) => {
21
21
  return (
22
- <a href={`tel:${phone}`} rel="norel norefferer" className="button">
22
+ <a href={`tel:${phone}`}
23
+ rel="noopener noreferrer"
24
+ className="button location-phone"
25
+ >
23
26
  Phone: <FormatPhoneNumber phoneNumberString={phone} />
24
27
  </a>
25
28
  );