wix-style-react
Version:
wix-style-react
31 lines (27 loc) • 941 B
JavaScript
import { storySettings } from './storySettings';
import CalendarPanelFooter, { defaultDateToStringOptions } from '../../src/CalendarPanelFooter';
export default {
category: storySettings.kind,
storyName: storySettings.storyName,
component: CalendarPanelFooter,
componentPath: '../../src/CalendarPanelFooter/CalendarPanelFooter.js',
componentProps: {
dataHook: storySettings.dataHook,
primaryActionDisabled: false,
primaryActionOnClick: function primaryActionOnClick() {
return null;
},
secondaryActionOnClick: function secondaryActionOnClick() {
return null;
},
dateToString: function dateToString(date) {
return date.toLocaleDateString('en-US', defaultDateToStringOptions);
},
selectedDays: {
from: new Date('2019-05-27T21:00:00.000Z'),
to: new Date('2019-05-27T21:00:00.000Z')
},
primaryActionLabel: 'submit',
secondaryActionLabel: 'cancel'
}
};