@rileybathurst/paddle 0.0.105 → 0.0.106

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": "0.0.105",
4
+ "version": "0.0.106",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -74,7 +74,7 @@ interface ContentTypes {
74
74
  season_end?: string;
75
75
 
76
76
  }
77
- function Content({ svg, name, address, description, opening_time, closing_time, streetAddress, addressLocality, addressRegion, postalCode, commonName, season_start, season_end, phone }: ContentTypes) {
77
+ function Content({ svg, name, address, description, opening_time, closing_time, streetAddress, addressLocality, addressRegion, postalCode, commonName, season_start, season_end }: ContentTypes) {
78
78
  return (
79
79
  <>
80
80
  <div
@@ -94,8 +94,6 @@ function Content({ svg, name, address, description, opening_time, closing_time,
94
94
  {addressRegion ? <span>{addressRegion} </span> : null}
95
95
  {postalCode ? <span>{postalCode}<br /></span> : null}
96
96
  </address>
97
-
98
- {name === "On Water Rental" ? <Phone phone={phone} /> : null}
99
97
  </>
100
98
  ) :
101
99
 
@@ -123,7 +121,6 @@ function Content({ svg, name, address, description, opening_time, closing_time,
123
121
  {description.data.description}
124
122
  </Markdown>
125
123
  )}
126
- {/* // TODO: add phone but dont break the link on link rule {name === "On Water Rental" ? <Phone /> : null} */}
127
124
  </div>
128
125
  </>
129
126
  )
@@ -133,11 +130,41 @@ export function PaddleLocationCard({ svg, name, link, address, description, open
133
130
 
134
131
  if (link.includes('http')) {
135
132
  return (
136
- <a href={link}
133
+ <>
134
+ <a href={link}
135
+ className={`location ${background}`}
136
+ target="_blank"
137
+ rel="noopener noreferrer"
138
+ title={name}
139
+ >
140
+ <Content
141
+ svg={svg}
142
+ name={name}
143
+ address={address}
144
+ description={description}
145
+ opening_time={opening_time}
146
+ closing_time={closing_time}
147
+
148
+ streetAddress={streetAddress}
149
+ addressLocality={addressLocality}
150
+ addressRegion={addressRegion}
151
+ postalCode={postalCode}
152
+ commonName={commonName}
153
+
154
+ season_start={season_start}
155
+ season_end={season_end}
156
+
157
+ />
158
+ </a>
159
+ {name === "On Water Rental" ? <Phone phone={phone} /> : null}
160
+ </>
161
+ )
162
+ }
163
+ return (
164
+ <>
165
+ <Link
166
+ to={link}
137
167
  className={`location ${background}`}
138
- target="_blank"
139
- rel="noopener noreferrer"
140
- title={name}
141
168
  >
142
169
  <Content
143
170
  svg={svg}
@@ -155,36 +182,9 @@ export function PaddleLocationCard({ svg, name, link, address, description, open
155
182
 
156
183
  season_start={season_start}
157
184
  season_end={season_end}
158
- phone={phone}
159
-
160
185
  />
161
- </a>
162
- )
163
- }
164
- return (
165
- <Link
166
- to={link}
167
- className={`location ${background}`}
168
- >
169
- <Content
170
- svg={svg}
171
- name={name}
172
- address={address}
173
- description={description}
174
- opening_time={opening_time}
175
- closing_time={closing_time}
176
-
177
- streetAddress={streetAddress}
178
- addressLocality={addressLocality}
179
- addressRegion={addressRegion}
180
- postalCode={postalCode}
181
- commonName={commonName}
182
-
183
- season_start={season_start}
184
- season_end={season_end}
185
- phone={phone}
186
-
187
- />
188
- </Link>
186
+ </Link>
187
+ {name === "On Water Rental" ? <Phone phone={phone} /> : null}
188
+ </>
189
189
  )
190
190
  }