lucid-ui
Version:
A UI component library from AppNexus.
22 lines • 709 B
JavaScript
import React from 'react';
import createClass from 'create-react-class';
import CalendarMonth from '../CalendarMonth';
export default createClass({
UNSAFE_componentWillMount: function UNSAFE_componentWillMount() {
this.fromDate = new Date();
this.fromDate.setDate(1);
},
render: function render() {
return /*#__PURE__*/React.createElement("section", {
style: {
maxWidth: 400
}
}, "Cursor for day selectMode:", /*#__PURE__*/React.createElement(CalendarMonth, {
cursor: new Date()
}), "Cursor for range selectMode:", /*#__PURE__*/React.createElement(CalendarMonth, {
selectMode: "to",
from: this.fromDate,
cursor: new Date()
}));
}
});