@rileybathurst/paddle 1.9.34 → 1.9.35
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
package/src/paddle-compare.tsx
CHANGED
|
@@ -7,6 +7,7 @@ import type { PaddleCompareTypes } from './types/paddle-compare-types';
|
|
|
7
7
|
type TourType = PaddleCompareTypes["tours"][number];
|
|
8
8
|
|
|
9
9
|
type CompareDetailsTypes = {
|
|
10
|
+
id: React.Key;
|
|
10
11
|
name: TourType["name"];
|
|
11
12
|
onTourChange: (value: TourType["name"]) => void;
|
|
12
13
|
link: TourType["slug"];
|
|
@@ -46,6 +47,12 @@ const CompareDetails = ({
|
|
|
46
47
|
tours
|
|
47
48
|
}: CompareDetailsTypes) => {
|
|
48
49
|
|
|
50
|
+
// TODO: testing
|
|
51
|
+
console.log(start);
|
|
52
|
+
console.log(finish);
|
|
53
|
+
console.log(duration);
|
|
54
|
+
console.log(timeframe);
|
|
55
|
+
|
|
49
56
|
const time = PaddleTime({
|
|
50
57
|
start: start,
|
|
51
58
|
finish: finish,
|
|
@@ -116,11 +123,6 @@ const CompareDetails = ({
|
|
|
116
123
|
|
|
117
124
|
export const PaddleCompare = ({ tours, strapiBranchName, peek_base }: PaddleCompareTypes) => {
|
|
118
125
|
|
|
119
|
-
// TODO: testing
|
|
120
|
-
console.log(tours);
|
|
121
|
-
console.log(strapiBranchName);
|
|
122
|
-
console.log(peek_base);
|
|
123
|
-
|
|
124
126
|
let id1 = tours[0].id;
|
|
125
127
|
let id2 = tours[1].id;
|
|
126
128
|
|
|
@@ -209,7 +211,7 @@ export const PaddleCompare = ({ tours, strapiBranchName, peek_base }: PaddleComp
|
|
|
209
211
|
</div>
|
|
210
212
|
|
|
211
213
|
<CompareDetails
|
|
212
|
-
|
|
214
|
+
id={id1}
|
|
213
215
|
name={tour1}
|
|
214
216
|
onTourChange={updateTour1}
|
|
215
217
|
link={link1}
|
|
@@ -231,7 +233,7 @@ export const PaddleCompare = ({ tours, strapiBranchName, peek_base }: PaddleComp
|
|
|
231
233
|
tours={tours}
|
|
232
234
|
/>
|
|
233
235
|
<CompareDetails
|
|
234
|
-
|
|
236
|
+
id={id2}
|
|
235
237
|
name={tour2}
|
|
236
238
|
onTourChange={updateTour2}
|
|
237
239
|
link={link2}
|