File tree Expand file tree Collapse file tree 3 files changed +19
-9
lines changed Expand file tree Collapse file tree 3 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,20 @@ import Calendar from 'reactjs-availability-calendar'
35
35
export default function App () {
36
36
const bookings = [
37
37
{
38
- from: ' 2022-04-08T00:00:00.000Z' ,
39
- to: ' 2022-04-10T00:00:00.000Z' ,
38
+ from: new Date (' 2022-07-03' ),
39
+ to: new Date (' 2022-07-30' ),
40
+ middayCheckout: true ,
41
+ },
42
+ {
43
+ from: ' 2022-04-08' ,
44
+ to: ' 2022-04-13' ,
40
45
middayCheckout: true ,
41
46
},
42
47
{
43
48
from: ' 2022-09-03T19:20:35.593Z' ,
44
- to: ' 2022-09-03T19 :20:35.593Z' ,
49
+ to: ' 2022-09-22T19 :20:35.593Z' ,
45
50
middayCheckout: false ,
46
- }
51
+ },
47
52
]
48
53
49
54
return (
@@ -81,7 +86,7 @@ Please copy and self host the default CSS linked below.
81
86
middayCheckout: true,
82
87
}]
83
88
```
84
- ** Important :** Dates must be in valid ISO 8601 format. <a href =" https://en.wikipedia.org/wiki/ISO_8601 " >Learn more</a >\
89
+ ** Notes :** For best results, ` Dates ` should be in valid ISO 8601 format. <a href =" https://en.wikipedia.org/wiki/ISO_8601 " >Learn more</a >\
85
90
** Description:** Dates to be shown as unavailable on the calendar
86
91
87
92
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " reactjs-availability-calendar" ,
3
- "version" : " 1.1.3 " ,
3
+ "version" : " 1.1.4 " ,
4
4
"description" : " React Availability Calendar" ,
5
5
"main" : " ./dist/cjs/index.js" ,
6
6
"module" : " ./dist/esm/index.js" ,
Original file line number Diff line number Diff line change @@ -15,13 +15,18 @@ export const WithBookings = Template.bind({})
15
15
WithBookings . args = {
16
16
bookings : [
17
17
{
18
- from : '2022-04-08T00:00:00.000Z' ,
19
- to : '2022-04-10T00:00:00.000Z' ,
18
+ from : new Date ( '2022-07-03' ) ,
19
+ to : new Date ( '2022-07-30' ) ,
20
+ middayCheckout : true ,
21
+ } ,
22
+ {
23
+ from : '2022-04-08' ,
24
+ to : '2022-04-13' ,
20
25
middayCheckout : true ,
21
26
} ,
22
27
{
23
28
from : '2022-09-03T19:20:35.593Z' ,
24
- to : '2022-09-03T19 :20:35.593Z' ,
29
+ to : '2022-09-22T19 :20:35.593Z' ,
25
30
middayCheckout : false ,
26
31
} ,
27
32
] ,
You can’t perform that action at this time.
0 commit comments