@rileybathurst/paddle 1.2.7 → 1.2.8

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": "1.2.7",
4
+ "version": "1.2.8",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -1,27 +1,14 @@
1
1
  import * as React from "react"
2
2
  import { Link } from 'gatsby';
3
3
  import SVG from 'react-inlinesvg';
4
+ import type { PaddleBrandType } from "./types/paddle-brand-types";
4
5
 
5
6
  // * additional work is done here to split kayak and paddleboard
6
7
 
7
- type BrandType = {
8
- id: string;
9
- slug: string;
10
- svg: string;
11
- name: string;
12
- retail: {
13
- title: string;
14
- slug: string;
15
- sport: {
16
- slug: string;
17
- }
18
- }[];
19
- };
20
-
21
- const PaddleBrandList = ({ nodes, sport }: { nodes: BrandType[]; sport?: string }) => {
22
-
23
- const BrandSet = new Set<BrandType>();
24
- let BrandArray: BrandType[] = [];
8
+ const PaddleBrandList = ({ nodes, sport }: { nodes: PaddleBrandType[]; sport?: string }) => {
9
+
10
+ const BrandSet = new Set<PaddleBrandType>();
11
+ let BrandArray: PaddleBrandType[] = [];
25
12
 
26
13
  if (sport) {
27
14
  nodes.map((brand) => {
@@ -43,7 +30,7 @@ const PaddleBrandList = ({ nodes, sport }: { nodes: BrandType[]; sport?: string
43
30
 
44
31
  return (
45
32
  <ul className='brand_list'>
46
- {BrandArray.map((brand: BrandType) => (
33
+ {BrandArray.map((brand: PaddleBrandType) => (
47
34
  <li key={brand.id}>
48
35
  <Link to={`/retail/${sport}/${brand.slug}`}>
49
36
  {brand.svg ?
package/src/index.tsx CHANGED
@@ -33,4 +33,5 @@ export * from "./types/ticket-types";
33
33
  export * from "./types/location-card-types";
34
34
  export * from "./types/paddle-location-deck-types";
35
35
  export * from "./types/gatsby-image-type";
36
- export * from "./types/paddle-purchase-types";
36
+ export * from "./types/paddle-purchase-types";
37
+ export * from "./types/paddle-brand-types";
@@ -0,0 +1,13 @@
1
+ export type PaddleBrandType = {
2
+ id: string;
3
+ slug: string;
4
+ svg: string;
5
+ name: string;
6
+ retail: {
7
+ title: string;
8
+ slug: string;
9
+ sport: {
10
+ slug: string;
11
+ };
12
+ }[];
13
+ };