@rileybathurst/paddle 0.0.90 → 0.0.92

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@rileybathurst/paddle",
3
3
  "private": false,
4
- "version": "0.0.90",
4
+ "version": "0.0.92",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -6,14 +6,17 @@ import { PaddleTime } from "./PaddleTime"
6
6
 
7
7
  export function PaddleTicket({ ogimage, slug, name, start, finish, duration, timeframe, fitness, excerpt, price, peek, peek_tours_fall_back, tour_page, allStrapiSunsetTourTime }: PaddleTicketTypes) {
8
8
 
9
+ console.log(`PaddleTicket ${allStrapiSunsetTourTime}`); // this does seem like it was hitting
10
+
9
11
  const time = PaddleTime({
10
12
  start: start,
11
13
  finish: finish,
12
14
  duration: duration,
13
15
  timeframe: timeframe,
14
- allStrapiSunsetTourTime: allStrapiSunsetTourTime, // Replace null with the appropriate value
16
+ allStrapiSunsetTourTime: allStrapiSunsetTourTime,
15
17
  });
16
18
 
19
+
17
20
  return (
18
21
  <section className="ticket">
19
22
  <Link to={`/${tour_page}/${slug}`}>
@@ -1,11 +1,11 @@
1
1
  // import * as React from "react"
2
2
 
3
3
  interface TimeTypes {
4
- start?: string | null;
5
- finish?: string | null;
6
- duration?: number | null;
7
- timeframe?: string | null;
8
- slug?: string | null;
4
+ start?: string;
5
+ finish?: string;
6
+ duration?: number;
7
+ timeframe?: string;
8
+ slug?: string;
9
9
 
10
10
  allStrapiSunsetTourTime: {
11
11
  nodes: {
@@ -15,9 +15,22 @@ interface TimeTypes {
15
15
  endTime: string;
16
16
  }[];
17
17
  };
18
+
19
+ allStrapiMoonlightTourDateTime: {
20
+ nodes: {
21
+ id: React.Key;
22
+ date: string;
23
+ start: string;
24
+ finish: string;
25
+ }[];
26
+ };
27
+
18
28
  }
19
29
  export const PaddleTime = ({ start, finish, duration, timeframe, slug, allStrapiSunsetTourTime }: TimeTypes) => {
20
30
 
31
+ console.log('time 🦄');
32
+ console.log('allStrapiSunsetTourTime', allStrapiSunsetTourTime);
33
+
21
34
  // TODO: sunset is a whole thing
22
35
  const currentDate = new Date();
23
36
  let sunsetStartTime = '';
@@ -8,15 +8,24 @@ export interface PaddleTicketTypes {
8
8
  };
9
9
  slug: string;
10
10
  name: string;
11
- start?: string | null;
12
- finish?: string | null;
13
- duration?: number | null;
14
- timeframe?: string | null;
15
- fitness?: string | null;
11
+ start?: string;
12
+ finish?: string;
13
+ duration?: number;
14
+ timeframe?: string;
15
+ fitness?: string;
16
16
  excerpt: string;
17
17
  price: string;
18
18
  peek: string;
19
19
 
20
20
  peek_tours_fall_back: string;
21
21
  tour_page: string;
22
+
23
+ allStrapiSunsetTourTime: {
24
+ nodes: {
25
+ startDate: string;
26
+ endDate: string;
27
+ startTime: string;
28
+ endTime: string;
29
+ }[];
30
+ };
22
31
  }