@rileybathurst/paddle 1.4.0 → 1.5.0
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
|
@@ -7,7 +7,7 @@ const LineBreaker = ({ text }: { text: string; }) => {
|
|
|
7
7
|
const parts = text.split(/([- ])/g);
|
|
8
8
|
|
|
9
9
|
return (
|
|
10
|
-
<h4>
|
|
10
|
+
<h4 className="title">
|
|
11
11
|
{parts.map((part) =>
|
|
12
12
|
part === '-' || part === ' ' ? <br key={part} /> : part
|
|
13
13
|
)}
|
|
@@ -15,7 +15,7 @@ const LineBreaker = ({ text }: { text: string; }) => {
|
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export const PaddlePricingChart = ({ rentalRates
|
|
18
|
+
export const PaddlePricingChart = ({ rentalRates }: paddlePricingChartTypes) => {
|
|
19
19
|
return (
|
|
20
20
|
<div className="pricing-chart">
|
|
21
21
|
<div className="column">
|
|
@@ -25,6 +25,7 @@ export const PaddlePricingChart = ({ rentalRates, rentalAddons }: paddlePricingC
|
|
|
25
25
|
<p>1 Hour</p>
|
|
26
26
|
<p>3 Hours</p>
|
|
27
27
|
<p>Full Day</p>
|
|
28
|
+
<p>Pedal Drive</p>
|
|
28
29
|
</div>
|
|
29
30
|
|
|
30
31
|
{rentalRates.nodes.map((rate) => (
|
|
@@ -33,21 +34,9 @@ export const PaddlePricingChart = ({ rentalRates, rentalAddons }: paddlePricingC
|
|
|
33
34
|
<p>{rate.oneHour}</p>
|
|
34
35
|
<p>{rate.threeHour}</p>
|
|
35
36
|
<p>{rate.fullDay}</p>
|
|
37
|
+
<p>{rate.pedalAdd}</p>
|
|
36
38
|
</div>
|
|
37
39
|
))}
|
|
38
|
-
|
|
39
|
-
{rentalAddons && rentalAddons.nodes.length > 0 ? (
|
|
40
|
-
<div className="column">
|
|
41
|
-
{rentalAddons.nodes.map((addon) => (
|
|
42
|
-
<React.Fragment key={addon.id}>
|
|
43
|
-
<p>{addon.name}</p>
|
|
44
|
-
<p>+{addon.single}</p>
|
|
45
|
-
<p>+{addon.double}</p>
|
|
46
|
-
<p>+{addon.sup}</p>
|
|
47
|
-
</React.Fragment>
|
|
48
|
-
))}
|
|
49
|
-
</div>
|
|
50
|
-
) : null}
|
|
51
40
|
</div>
|
|
52
41
|
)
|
|
53
42
|
}
|
|
@@ -8,15 +8,7 @@ export type paddlePricingChartTypes = {
|
|
|
8
8
|
oneHour: number;
|
|
9
9
|
threeHour: number;
|
|
10
10
|
fullDay: number;
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
rentalAddons?: {
|
|
14
|
-
nodes: {
|
|
15
|
-
id: React.Key;
|
|
16
|
-
name: string;
|
|
17
|
-
single: number;
|
|
18
|
-
double: number;
|
|
19
|
-
sup: number;
|
|
11
|
+
pedalAdd?: number;
|
|
20
12
|
}[];
|
|
21
13
|
};
|
|
22
14
|
};
|