Skip to content

Commit 1058851

Browse files
committed
Add custom shortcuts in playground 🎉
1 parent 6e9535d commit 1058851

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

pages/index.js

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,28 @@ export default function Playground() {
6262
yesterday: "YText",
6363
past: period => `P-${period} Text`,
6464
currentMonth: "CMText",
65-
pastMonth: "PMText"
65+
pastMonth: "PMText",
66+
last3Days: {
67+
text: "Last 3 days",
68+
period: {
69+
start: new Date(new Date().setDate(new Date().getDate() - 3)),
70+
end: new Date()
71+
}
72+
},
73+
thisDay: {
74+
text: "This Day",
75+
period: {
76+
start: new Date(),
77+
end: new Date()
78+
}
79+
},
80+
next8Days: {
81+
text: "Next 8 days",
82+
period: {
83+
start: new Date(),
84+
end: new Date(new Date().setDate(new Date().getDate() + 8))
85+
}
86+
}
6687
},
6788
footer: {
6889
cancel: "CText",

0 commit comments

Comments
 (0)