This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // O(1) | |
| const todo = (state, action) => { | |
| const actions = { | |
| ADD_TODO: () => { | |
| return { | |
| id: action.id, | |
| text: action.text, | |
| completed: false | |
| } | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { accessor } from 'react-big-calendar/lib/utils/accessors'; | |
| import { accessor as accessorPropType } from 'react-big-calendar/lib/utils/propTypes'; | |
| import { noop } from 'lodash'; | |
| import { zonedToLocal, localToZoned } from '/client/utils/timezones'; | |
| import { hasTime, shiftDate, shiftHour } from '/client/utils/date'; | |
| /** | |
| * withTimeZone - HOC to add time zone support to react-big-calendar |