@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 +1 -1
- package/src/PaddleBrandList.tsx +6 -19
- package/src/index.tsx +2 -1
- package/src/types/paddle-brand-types.ts +13 -0
package/package.json
CHANGED
package/src/PaddleBrandList.tsx
CHANGED
|
@@ -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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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:
|
|
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";
|