grommet
Version:
focus on the essential experience
21 lines (19 loc) • 782 B
JavaScript
import React from 'react';
import { storiesOf } from '@storybook/react';
import { Box, Calendar, Grommet } from 'grommet';
import { grommet } from 'grommet/themes'; // When the first day of the month is Sunday, and the request of firstDayOfWeek
// is Monday, we are verifing we are not missing a week, issue 3253.
var SundayFirstDay = function SundayFirstDay() {
return /*#__PURE__*/React.createElement(Grommet, {
theme: grommet
}, /*#__PURE__*/React.createElement(Box, {
align: "center",
pad: "large"
}, /*#__PURE__*/React.createElement(Calendar, {
firstDayOfWeek: 1,
date: new Date(2019, 8, 2).toISOString()
})));
};
storiesOf('Calendar', module).add('1st on Sunday', function () {
return /*#__PURE__*/React.createElement(SundayFirstDay, null);
});