@rileybathurst/paddle 0.0.85 → 0.0.87
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 +1 -1
- package/src/PaddleSpecs.tsx +12 -4
package/package.json
CHANGED
package/src/PaddleSpecs.tsx
CHANGED
|
@@ -17,12 +17,18 @@ export const PaddleSpecs = (specs: SpecsTypes) =>
|
|
|
17
17
|
return null;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
if (key === 'time' && typeof value === 'object') {
|
|
21
|
+
// if value.timevalue === time then return time entry
|
|
22
|
+
// if (value.timevalue === 'time' || value.timevalue === 'duration') {
|
|
23
|
+
// ? can I just do anything with time
|
|
23
24
|
return (
|
|
24
|
-
<
|
|
25
|
+
<div key={key} className="spec">
|
|
26
|
+
<h2>Time</h2>
|
|
27
|
+
<h3>{value.timeentry}</h3>
|
|
28
|
+
</div>
|
|
25
29
|
);
|
|
30
|
+
// }
|
|
31
|
+
// * I cant remeber others yet
|
|
26
32
|
}
|
|
27
33
|
|
|
28
34
|
if (key === 'cost' && typeof value === 'object' && value.discount) {
|
|
@@ -49,6 +55,8 @@ export const PaddleSpecs = (specs: SpecsTypes) =>
|
|
|
49
55
|
);
|
|
50
56
|
}
|
|
51
57
|
|
|
58
|
+
/* I didnt know you could call yourself like this */
|
|
59
|
+
/* I guess its not a infinite loop as its not calling an object */
|
|
52
60
|
if (typeof value === 'object') {
|
|
53
61
|
return (
|
|
54
62
|
<PaddleSpecs {...value} />
|