willba-component-library 0.1.68 → 0.1.70

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,6 +1,6 @@
1
1
  {
2
2
  "name": "willba-component-library",
3
- "version": "0.1.68",
3
+ "version": "0.1.70",
4
4
  "description": "A stroybook 6 with TypeScript demo",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
@@ -36,22 +36,16 @@ export const Calendar = forwardRef<HTMLDivElement, Props>(
36
36
 
37
37
  const today = startOfDay(new Date())
38
38
 
39
- console.log(calendarOffset)
40
-
41
- const daysToOffsetCalendar =
42
- calendarOffset &&
43
- Object.entries(calendarOffset)?.find(
44
- (page) => selectedPath.substring(1) === page[0]
45
- )
46
-
47
- console.log(daysToOffsetCalendar)
39
+ // const daysToOffsetCalendar =
40
+ // calendarOffset && typeof calendarOffset === 'object'
41
+ // ? Object.entries(calendarOffset).find(
42
+ // (page) => selectedPath.substring(1) === page[0]
43
+ // )
44
+ // : null
48
45
 
49
46
  const disabledDays = [
50
47
  {
51
- from: addDays(
52
- today,
53
- !!daysToOffsetCalendar?.length ? daysToOffsetCalendar[1] : -2
54
- ),
48
+ from: addDays(today, -2),
55
49
  to: addDays(today, -100),
56
50
  },
57
51
  ]