Skip to content

Commit ae7cd6c

Browse files
authored
Merge pull request #10 from simpletut/updateDocs
updates docs
2 parents d5f14bf + 2c45878 commit ae7cd6c

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,20 @@ import Calendar from 'reactjs-availability-calendar'
3535
export default function App() {
3636
const bookings = [
3737
{
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',
4045
middayCheckout: true,
4146
},
4247
{
4348
from: '2022-09-03T19:20:35.593Z',
44-
to: '2022-09-03T19:20:35.593Z',
49+
to: '2022-09-22T19:20:35.593Z',
4550
middayCheckout: false,
46-
}
51+
},
4752
]
4853

4954
return (
@@ -81,7 +86,7 @@ Please copy and self host the default CSS linked below.
8186
middayCheckout: true,
8287
}]
8388
```
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>\
8590
**Description:** Dates to be shown as unavailable on the calendar
8691

8792

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reactjs-availability-calendar",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "React Availability Calendar",
55
"main": "./dist/cjs/index.js",
66
"module": "./dist/esm/index.js",

src/stories/Calendar.stories.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,18 @@ export const WithBookings = Template.bind({})
1515
WithBookings.args = {
1616
bookings: [
1717
{
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',
2025
middayCheckout: true,
2126
},
2227
{
2328
from: '2022-09-03T19:20:35.593Z',
24-
to: '2022-09-03T19:20:35.593Z',
29+
to: '2022-09-22T19:20:35.593Z',
2530
middayCheckout: false,
2631
},
2732
],

0 commit comments

Comments
 (0)