@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rileybathurst/paddle",
3
3
  "private": false,
4
- "version": "0.0.85",
4
+ "version": "0.0.87",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -17,12 +17,18 @@ export const PaddleSpecs = (specs: SpecsTypes) =>
17
17
  return null;
18
18
  }
19
19
 
20
- /* I didnt know you could call yourself like this */
21
- /* I guess its not a infinite loop as its not calling an object */
22
- if (key === 'weight' && typeof value === 'object') {
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
- <PaddleSpecs {...value} />
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} />