@rileybathurst/paddle 1.9.35 → 1.9.36
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
|
@@ -4,12 +4,14 @@ import type { PaddleLocationTypes } from "./types/paddle-location-types";
|
|
|
4
4
|
import type { PaddleLocationDeckTypes } from "./types/paddle-location-deck-types";
|
|
5
5
|
|
|
6
6
|
export const PaddleLocationDeck = ({
|
|
7
|
+
single,
|
|
7
8
|
nodes,
|
|
8
9
|
season_start,
|
|
9
10
|
season_end,
|
|
10
11
|
phone
|
|
11
12
|
}: PaddleLocationDeckTypes) => {
|
|
12
13
|
|
|
14
|
+
if (nodes) {
|
|
13
15
|
return (
|
|
14
16
|
<section className="location-deck">
|
|
15
17
|
{nodes.map((location: PaddleLocationTypes) => (
|
|
@@ -23,4 +25,19 @@ export const PaddleLocationDeck = ({
|
|
|
23
25
|
))}
|
|
24
26
|
</section>
|
|
25
27
|
);
|
|
28
|
+
} else if (single) {
|
|
29
|
+
return (
|
|
30
|
+
<section className="location-deck">
|
|
31
|
+
<PaddleLocation
|
|
32
|
+
key={single.id}
|
|
33
|
+
{...single}
|
|
34
|
+
season_start={season_start}
|
|
35
|
+
season_end={season_end}
|
|
36
|
+
phone={phone}
|
|
37
|
+
/>
|
|
38
|
+
</section>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return null;
|
|
26
43
|
};
|