Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
props: {
date: moment(),
dateService: new MomentDateService(),
},
};
const dateFnsCalendar: ComponentShowcaseItem = {
props: {
date: now,
dateService: new DateFnsService(),
},
};
const startViewCalendar: ComponentShowcaseItem = {
props: {
startView: CalendarViewModes.MONTH,
},
};
const minMaxCalendar: ComponentShowcaseItem = {
props: {
min: new Date(now.getFullYear(), now.getMonth(), 15),
max: new Date(now.getFullYear(), now.getMonth() + 1, 15),
},
};
const boundingCalendar: ComponentShowcaseItem = {
props: {
...defaultCalendar.props,
boundingMonth: false,
},
};