@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rileybathurst/paddle",
3
3
  "private": false,
4
- "version": "0.0.30",
4
+ "version": "0.0.32",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -106,18 +106,22 @@ function Content({ svg, name, address, description, opening_time, closing_time,
106
106
  )
107
107
  }
108
108
 
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>
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 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
+ 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
+ }