@rileybathurst/paddle 0.0.31 → 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.31",
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
+ }
@@ -1,23 +1,21 @@
1
1
  import * as React from "react"
2
- // import PaddleLocationCard from "./PaddleLocationCard";
3
- // import type { LocationCardTypes } from "./types/location-card-types";
2
+ import PaddleLocationCard from "./PaddleLocationCard";
3
+ import type { LocationCardTypes } from "./types/location-card-types";
4
4
 
5
- /* interface LocationDeckTypes {
5
+ interface LocationDeckTypes {
6
6
  background?: string;
7
7
  nodes?: LocationCardTypes[];
8
- } */
9
- export function PaddleLocationDeck() {
8
+ }
9
+ export function PaddleLocationDeck({ nodes, background }: LocationDeckTypes) {
10
10
  return (
11
11
  <section className="location-deck">
12
- {/* {nodes.map((location: LocationCardTypes) => (
13
- <PaddleLocationCard
14
- key={location.id}
15
- {...location}
16
- background={background}
17
- />
18
- ))} */}
19
-
20
- meow
12
+ {nodes.map((location: LocationCardTypes) => (
13
+ <PaddleLocationCard
14
+ key={location.id}
15
+ {...location}
16
+ background={background}
17
+ />
18
+ ))}
21
19
  </section>
22
20
  )
23
21
  }