@rileybathurst/paddle 0.0.102 → 0.0.103

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.102",
4
+ "version": "0.0.103",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -29,14 +29,14 @@ function Season({ name, season_start, season_end, opening_time, closing_time }:
29
29
  const seasonEndDate = new Date(season_end);
30
30
  console.log(`season_end ${season_end}`);
31
31
 
32
-
33
32
  if (currentDay > seasonStartDate || currentDay < seasonEndDate) {
34
33
  return (
35
34
  <p>
36
- {opening_time ? "Open Daily: " : null}
37
- <HourMin time={opening_time} />
38
- {opening_time ? " - : " : null}
39
- <HourMin time={closing_time} />
35
+ {opening_time ? "Open Daily: " : null}<br />
36
+ {opening_time && closing_time ? (
37
+ <span><HourMin time={opening_time} /> - <HourMin time={closing_time} /></span>
38
+ )
39
+ : null}
40
40
  </p>
41
41
  )
42
42
  }
@@ -108,17 +108,20 @@ function Content({ svg, name, address, description, opening_time, closing_time,
108
108
  </div>
109
109
 
110
110
  <div>
111
- <Season
112
- season_start={season_start}
113
- season_end={season_end}
114
- opening_time={opening_time}
115
- closing_time={closing_time}
116
- name={name}
117
- />
118
- <br />
119
- <Markdown className="react-markdown" >
120
- {description.data.description}
121
- </Markdown>
111
+
112
+ {opening_time && closing_time ? (
113
+ <Season
114
+ season_start={season_start}
115
+ season_end={season_end}
116
+ opening_time={opening_time}
117
+ closing_time={closing_time}
118
+ name={name}
119
+ />
120
+ ) : (
121
+ <Markdown className="react-markdown" >
122
+ {description.data.description}
123
+ </Markdown>
124
+ )}
122
125
  {/* // TODO: add phone but dont break the link on link rule {name === "On Water Rental" ? <Phone /> : null} */}
123
126
  </div>
124
127
  </>
@@ -10,10 +10,6 @@ interface LocationDeckTypes {
10
10
  }
11
11
  export function PaddleLocationDeck({ nodes, season_start, season_end, background }: LocationDeckTypes) {
12
12
 
13
-
14
- console.log('🦄');
15
- console.log(season_start);
16
-
17
13
  return (
18
14
  <section className="location-deck">
19
15
  {nodes.map((location: LocationCardTypes) => (
@@ -245,6 +245,10 @@ header {
245
245
  p {
246
246
  margin-block-end: 0; /* reset to the gap */
247
247
  }
248
+
249
+ ul {
250
+ padding-inline-start: 0;
251
+ }
248
252
  }
249
253
 
250
254
  .location.false:not(:last-child) {