@rileybathurst/paddle 0.0.28 → 0.0.29
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 +15 -41
- package/src/PaddleLocationDeck.tsx +10 -17
- package/src/PaddleTestimonials.tsx +6 -5
- package/src/index.tsx +5 -1
package/package.json
CHANGED
|
@@ -106,44 +106,18 @@ function Content({ svg, name, address, description, opening_time, closing_time,
|
|
|
106
106
|
)
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
const PaddleLocationCard = ({ svg, name, link, address, description, opening_time, closing_time, locale, background }: LocationCardTypes) =>
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
closing_time={closing_time}
|
|
125
|
-
locale={locale}
|
|
126
|
-
/>
|
|
127
|
-
</a>
|
|
128
|
-
)
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
return (
|
|
132
|
-
<Link
|
|
133
|
-
to={`/${link}`}
|
|
134
|
-
className={`location ${background}`}
|
|
135
|
-
>
|
|
136
|
-
<Content
|
|
137
|
-
svg={svg}
|
|
138
|
-
name={name}
|
|
139
|
-
address={address}
|
|
140
|
-
description={description}
|
|
141
|
-
opening_time={opening_time}
|
|
142
|
-
closing_time={closing_time}
|
|
143
|
-
locale={locale}
|
|
144
|
-
/>
|
|
145
|
-
</Link>
|
|
146
|
-
)
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export default PaddleLocationCard
|
|
109
|
+
export const PaddleLocationCard = ({ svg, name, link, address, description, opening_time, closing_time, locale, background }: LocationCardTypes) =>
|
|
110
|
+
<Link
|
|
111
|
+
to={`/${link}`}
|
|
112
|
+
className={`location ${background}`}
|
|
113
|
+
>
|
|
114
|
+
<Content
|
|
115
|
+
svg={svg}
|
|
116
|
+
name={name}
|
|
117
|
+
address={address}
|
|
118
|
+
description={description}
|
|
119
|
+
opening_time={opening_time}
|
|
120
|
+
closing_time={closing_time}
|
|
121
|
+
locale={locale}
|
|
122
|
+
/>
|
|
123
|
+
</Link>
|
|
@@ -6,20 +6,13 @@ interface LocationDeckTypes {
|
|
|
6
6
|
background?: string;
|
|
7
7
|
nodes?: LocationCardTypes[];
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/>
|
|
20
|
-
))}
|
|
21
|
-
</section>
|
|
22
|
-
)
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export default PaddleLocationDeck
|
|
9
|
+
export const PaddleLocationDeck = ({ background, nodes }: LocationDeckTypes) =>
|
|
10
|
+
<section className="location-deck">
|
|
11
|
+
{nodes.map((location: LocationCardTypes) => (
|
|
12
|
+
<PaddleLocationCard
|
|
13
|
+
key={location.id}
|
|
14
|
+
{...location}
|
|
15
|
+
background={background}
|
|
16
|
+
/>
|
|
17
|
+
))}
|
|
18
|
+
</section>
|
|
@@ -9,14 +9,15 @@ interface TestimonialsTypes {
|
|
|
9
9
|
location: string;
|
|
10
10
|
}[];
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
export const PaddleTestimonials = ({ nodes }: TestimonialsTypes) =>
|
|
12
|
+
export function PaddleTestimonials({ nodes }: TestimonialsTypes) {
|
|
14
13
|
<ul className='testimonials condor'>
|
|
15
|
-
|
|
14
|
+
<li>test</li>
|
|
15
|
+
{/* {nodes.map((testimonial) => (
|
|
16
16
|
<li key={testimonial.id}>
|
|
17
17
|
<p className='elbrus'><span className='denali font-serif'>“</span>{testimonial.testimonial}<span className='denali font-serif'>”</span></p>
|
|
18
18
|
<p>{testimonial.sign} {testimonial.customer}</p>
|
|
19
19
|
<p className='kosciuszko'>{testimonial.location}</p>
|
|
20
20
|
</li>
|
|
21
|
-
))}
|
|
22
|
-
</ul>
|
|
21
|
+
))} */}
|
|
22
|
+
</ul>
|
|
23
|
+
}
|
package/src/index.tsx
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// eslint-disable-next-line react-refresh/only-export-components
|
|
2
2
|
|
|
3
|
+
// TODO: these dont work
|
|
3
4
|
// Fragments
|
|
4
|
-
export * from "./testimonial-fragment";
|
|
5
|
+
// export * from "./testimonial-fragment";
|
|
5
6
|
|
|
6
7
|
// Atoms
|
|
7
8
|
export * from "./PaddleBookNow";
|
|
@@ -15,3 +16,6 @@ export * from "./PaddleTestimonials";
|
|
|
15
16
|
|
|
16
17
|
// Organisms
|
|
17
18
|
export * from "./PaddleLocationDeck";
|
|
19
|
+
|
|
20
|
+
// Test a function
|
|
21
|
+
export * from "./PaddleTestimonials";
|