Upgrade packages (#21)

This commit is contained in:
Manuel Bouza
2019-09-18 05:53:17 +02:00
committed by Tobias Miesel
parent 986fc64998
commit 5e62e16751
6 changed files with 2631 additions and 2207 deletions

View File

@@ -2,7 +2,7 @@ import React from "react"
import PropTypes from "prop-types"
import Day from "./Day"
import { formatDate } from "utils"
import { eachDay } from "date-fns"
import { eachDayOfInterval } from "date-fns"
import { pathEq } from "lodash/fp"
const findAbsence = (date, schedules) => schedules.find(pathEq("date", formatDate(date)))
@@ -14,7 +14,7 @@ const hoursAtDate = (date, activities) =>
const Calendar = ({ fromDate, toDate, selectedDate, activities, schedules, onChange }) => (
<div className="moco-bx-calendar">
{eachDay(fromDate, toDate).map(date => (
{eachDayOfInterval({ start: fromDate, end: toDate }).map(date => (
<Day
key={date}
date={date}