@rileybathurst/paddle 0.0.33 → 0.0.35
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/PaddleLocationCard.tsx +20 -1
- package/src/PaddleTestimonials.tsx +7 -10
package/package.json
CHANGED
|
@@ -107,7 +107,26 @@ function Content({ svg, name, address, description, opening_time, closing_time,
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
export function PaddleLocationCard({ svg, name, link, address, description, opening_time, closing_time, locale, background }: LocationCardTypes) {
|
|
110
|
-
|
|
110
|
+
if (link.includes('http')) {
|
|
111
|
+
return (
|
|
112
|
+
<a href={link}
|
|
113
|
+
className={`location ${background}`}
|
|
114
|
+
target="_blank"
|
|
115
|
+
rel="noopener noreferrer"
|
|
116
|
+
title={name}
|
|
117
|
+
>
|
|
118
|
+
<Content
|
|
119
|
+
svg={svg}
|
|
120
|
+
name={name}
|
|
121
|
+
address={address}
|
|
122
|
+
description={description}
|
|
123
|
+
opening_time={opening_time}
|
|
124
|
+
closing_time={closing_time}
|
|
125
|
+
locale={locale}
|
|
126
|
+
/>
|
|
127
|
+
</a>
|
|
128
|
+
)
|
|
129
|
+
}
|
|
111
130
|
return (
|
|
112
131
|
<Link
|
|
113
132
|
to={`/${link}`}
|
|
@@ -10,18 +10,15 @@ interface TestimonialsTypes {
|
|
|
10
10
|
}[];
|
|
11
11
|
}
|
|
12
12
|
export function PaddleTestimonials({ nodes }: TestimonialsTypes) {
|
|
13
|
-
console.log(nodes)
|
|
14
|
-
console.log('🦄')
|
|
15
13
|
return (
|
|
16
14
|
<ul className='testimonials condor'>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
))} */}
|
|
15
|
+
{nodes.map((testimonial) => (
|
|
16
|
+
<li key={testimonial.id}>
|
|
17
|
+
<p className='elbrus'><span className='denali font-serif'>“</span>{testimonial.testimonial}<span className='denali font-serif'>”</span></p>
|
|
18
|
+
<p>{testimonial.sign} {testimonial.customer}</p>
|
|
19
|
+
<p className='kosciuszko'>{testimonial.location}</p>
|
|
20
|
+
</li>
|
|
21
|
+
))}
|
|
25
22
|
</ul>
|
|
26
23
|
)
|
|
27
24
|
}
|