@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rileybathurst/paddle",
3
3
  "private": false,
4
- "version": "0.0.28",
4
+ "version": "0.0.29",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -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
- if (link.includes('http')) {
112
- return (
113
- <a
114
- href={link}
115
- className={`location ${background}`}
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
- }
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
- const PaddleLocationDeck = ({ background, nodes }: LocationDeckTypes) => {
11
- if (!nodes) return null;
12
- return (
13
- <section className="location-deck">
14
- {nodes.map((location: LocationCardTypes) => (
15
- <PaddleLocationCard
16
- key={location.id}
17
- {...location}
18
- background={background}
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
- {nodes.map((testimonial) => (
14
+ <li>test</li>
15
+ {/* {nodes.map((testimonial) => (
16
16
  <li key={testimonial.id}>
17
17
  <p className='elbrus'><span className='denali font-serif'>&ldquo;</span>{testimonial.testimonial}<span className='denali font-serif'>&rdquo;</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";