@rileybathurst/paddle 0.0.30 → 0.0.32
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 +19 -15
- package/src/PaddleLocationDeck.tsx +13 -10
package/package.json
CHANGED
|
@@ -106,18 +106,22 @@ function Content({ svg, name, address, description, opening_time, closing_time,
|
|
|
106
106
|
)
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
export
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
109
|
+
export function PaddleLocationCard({ svg, name, link, address, description, opening_time, closing_time, locale, background }: LocationCardTypes) {
|
|
110
|
+
// ! I was having issues pulled the other link
|
|
111
|
+
return (
|
|
112
|
+
<Link
|
|
113
|
+
to={`/${link}`}
|
|
114
|
+
className={`location ${background}`}
|
|
115
|
+
>
|
|
116
|
+
<Content
|
|
117
|
+
svg={svg}
|
|
118
|
+
name={name}
|
|
119
|
+
address={address}
|
|
120
|
+
description={description}
|
|
121
|
+
opening_time={opening_time}
|
|
122
|
+
closing_time={closing_time}
|
|
123
|
+
locale={locale}
|
|
124
|
+
/>
|
|
125
|
+
</Link>
|
|
126
|
+
)
|
|
127
|
+
}
|
|
@@ -6,13 +6,16 @@ interface LocationDeckTypes {
|
|
|
6
6
|
background?: string;
|
|
7
7
|
nodes?: LocationCardTypes[];
|
|
8
8
|
}
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
export function PaddleLocationDeck({ nodes, background }: LocationDeckTypes) {
|
|
10
|
+
return (
|
|
11
|
+
<section className="location-deck">
|
|
12
|
+
{nodes.map((location: LocationCardTypes) => (
|
|
13
|
+
<PaddleLocationCard
|
|
14
|
+
key={location.id}
|
|
15
|
+
{...location}
|
|
16
|
+
background={background}
|
|
17
|
+
/>
|
|
18
|
+
))}
|
|
19
|
+
</section>
|
|
20
|
+
)
|
|
21
|
+
}
|