@rileybathurst/paddle 0.0.77 → 0.0.78
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,21 +1,19 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
|
|
3
3
|
type PaddleSunsetTourTimesTypes = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}[];
|
|
12
|
-
};
|
|
4
|
+
nodes: {
|
|
5
|
+
id: string;
|
|
6
|
+
startDate: string;
|
|
7
|
+
endDate: string;
|
|
8
|
+
startTime: string;
|
|
9
|
+
endTime: string;
|
|
10
|
+
}[];
|
|
13
11
|
}
|
|
14
|
-
export const PaddleSunsetTourTimes = ({
|
|
12
|
+
export const PaddleSunsetTourTimes = ({ nodes }: PaddleSunsetTourTimesTypes) =>
|
|
15
13
|
<section className="paddle-sunset-tour-times">
|
|
16
14
|
{/* // TODO: stylize start with a storybook */}
|
|
17
15
|
<p>*We adapt the time of our sunset tour to the sun</p>
|
|
18
|
-
{
|
|
16
|
+
{nodes.map((time) => {
|
|
19
17
|
const startDate = new Date(time.startDate);
|
|
20
18
|
const endDate = new Date(time.endDate);
|
|
21
19
|
|