@rileybathurst/paddle 0.0.96 → 0.0.98

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.96",
4
+ "version": "0.0.98",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -21,10 +21,13 @@ function Season({ name, season_start, season_end, opening_time, closing_time }:
21
21
  }
22
22
 
23
23
  const currentDay = new Date();
24
+ console.log(`currentDay ${currentDay}`);
24
25
  const seasonStartDate = new Date(season_start);
26
+ console.log(`season_start ${season_start}`);
25
27
  const seasonEndDate = new Date(season_end);
28
+ console.log(`season_end ${season_end}`);
26
29
 
27
- if (currentDay < seasonStartDate || currentDay > seasonEndDate) {
30
+ if (currentDay > seasonStartDate || currentDay < seasonEndDate) {
28
31
  return (
29
32
  <p>
30
33
  {opening_time ? "Open Daily: " : null}
@@ -72,7 +75,7 @@ interface ContentTypes {
72
75
  commonName?: string;
73
76
 
74
77
  }
75
- function Content({ svg, name, address, description, opening_time, closing_time, streetAddress, addressLocality, addressRegion, postalCode, commonName }: ContentTypes) {
78
+ function Content({ svg, name, address, description, opening_time, closing_time, streetAddress, addressLocality, addressRegion, postalCode, commonName, season_start, season_end }: ContentTypes) {
76
79
  return (
77
80
  <>
78
81
  <div
@@ -103,8 +106,8 @@ function Content({ svg, name, address, description, opening_time, closing_time,
103
106
 
104
107
  <div>
105
108
  <Season
106
- season_start={locale.season_start}
107
- season_end={locale.season_end}
109
+ season_start={season_start}
110
+ season_end={season_end}
108
111
  opening_time={opening_time}
109
112
  closing_time={closing_time}
110
113
  name={name}