@rileybathurst/paddle 1.9.46 → 1.9.47
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/App.tsx +4 -3
- package/src/paddle-compare.tsx +7 -3
- package/src/styles/lists.css +2 -14
- package/src/styles/media.css +6 -0
package/package.json
CHANGED
package/src/App.tsx
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// * this is the opening vite page to test functions with
|
|
2
|
+
// TODO: faker
|
|
2
3
|
|
|
3
4
|
import { useState } from 'react'
|
|
4
5
|
import reactLogo from './assets/react.svg'
|
|
5
6
|
import viteLogo from '/vite.svg'
|
|
6
7
|
import { PaddlePricingChart } from './paddle-pricing-chart'
|
|
7
|
-
import { PaddleCompare } from './paddle-compare'
|
|
8
|
+
// import { PaddleCompare } from './paddle-compare'
|
|
8
9
|
|
|
9
10
|
function App() {
|
|
10
11
|
const [count, setCount] = useState(0)
|
|
@@ -96,7 +97,7 @@ function App() {
|
|
|
96
97
|
}}
|
|
97
98
|
/>
|
|
98
99
|
|
|
99
|
-
<PaddleCompare
|
|
100
|
+
{/* <PaddleCompare
|
|
100
101
|
peek_base="123"
|
|
101
102
|
strapiBranchName="south-tahoe"
|
|
102
103
|
tours={[
|
|
@@ -149,7 +150,7 @@ function App() {
|
|
|
149
150
|
peek: "101112"
|
|
150
151
|
}
|
|
151
152
|
]}
|
|
152
|
-
/>
|
|
153
|
+
/> */}
|
|
153
154
|
</>
|
|
154
155
|
)
|
|
155
156
|
}
|
package/src/paddle-compare.tsx
CHANGED
|
@@ -60,6 +60,10 @@ const CompareDetails = ({
|
|
|
60
60
|
timeframe: timeframe,
|
|
61
61
|
});
|
|
62
62
|
|
|
63
|
+
if (sport === "sup") {
|
|
64
|
+
sport = "Paddleboard";
|
|
65
|
+
}
|
|
66
|
+
|
|
63
67
|
return (
|
|
64
68
|
<section>
|
|
65
69
|
<select
|
|
@@ -84,7 +88,7 @@ const CompareDetails = ({
|
|
|
84
88
|
<GatsbyImage
|
|
85
89
|
image={ogimage.localFile.childImageSharp.gatsbyImageData}
|
|
86
90
|
alt={ogimage.alternativeText || name}
|
|
87
|
-
className="comparesheet_image"
|
|
91
|
+
className="comparesheet_image img__wrapped"
|
|
88
92
|
/>
|
|
89
93
|
) : <div> </div>}
|
|
90
94
|
|
|
@@ -176,7 +180,7 @@ export const PaddleCompare = ({ tours, breadcrumb, strapiBranchName, peek_base }
|
|
|
176
180
|
setMinimum1(selectedTour.minimum || 0);
|
|
177
181
|
setPrice1(selectedTour.price || 0);
|
|
178
182
|
setPeeks1(selectedTour.peek || "not set");
|
|
179
|
-
setFitness1(selectedTour.fitness || "
|
|
183
|
+
setFitness1(selectedTour.fitness || "not set");
|
|
180
184
|
};
|
|
181
185
|
|
|
182
186
|
const updateTour2 = (selectedName: string) => {
|
|
@@ -196,7 +200,7 @@ export const PaddleCompare = ({ tours, breadcrumb, strapiBranchName, peek_base }
|
|
|
196
200
|
setMinimum2(selectedTour.minimum || 0);
|
|
197
201
|
setPrice2(selectedTour.price || 0);
|
|
198
202
|
setPeeks2(selectedTour.peek || "not set");
|
|
199
|
-
setFitness2(selectedTour.fitness || "
|
|
203
|
+
setFitness2(selectedTour.fitness || "not set");
|
|
200
204
|
};
|
|
201
205
|
|
|
202
206
|
return (
|
package/src/styles/lists.css
CHANGED
|
@@ -84,22 +84,10 @@ ol {
|
|
|
84
84
|
ul {
|
|
85
85
|
list-style: none;
|
|
86
86
|
padding-inline-start: 0;
|
|
87
|
-
display: flex;
|
|
88
|
-
flex-flow: row wrap;
|
|
89
|
-
gap: var(--vinson);
|
|
90
87
|
|
|
91
88
|
li {
|
|
92
|
-
height:
|
|
93
|
-
margin-block-end:
|
|
94
|
-
|
|
95
|
-
@supports not (margin: 1lh) {
|
|
96
|
-
height: var(--aconcagua);
|
|
97
|
-
margin-block-end: var(--elbrus);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
li:last-child {
|
|
102
|
-
border-bottom: none;
|
|
89
|
+
line-height: 1.5lh;
|
|
90
|
+
margin-block-end: 0; /* reset */
|
|
103
91
|
}
|
|
104
92
|
}
|
|
105
93
|
}
|
package/src/styles/media.css
CHANGED