diff --git a/fittrackee_client/src/components/Dashboard/Calendar.jsx b/fittrackee_client/src/components/Dashboard/Calendar.jsx index 3109620d..3660485c 100644 --- a/fittrackee_client/src/components/Dashboard/Calendar.jsx +++ b/fittrackee_client/src/components/Dashboard/Calendar.jsx @@ -13,13 +13,12 @@ import { subMonths, } from 'date-fns' import { enGB, fr } from 'date-fns/locale' -import React, { Fragment } from 'react' +import React from 'react' import { connect } from 'react-redux' -import { Link } from 'react-router-dom' +import CalendarActivities from './CalendarActivities' import { getMonthActivities } from '../../actions/activities' import { getDateWithTZ } from '../../utils' -import { recordsLabels } from '../../utils/activities' const getStartAndEndMonth = (date, weekStartOnMonday) => { const monthStart = startOfMonth(date) @@ -114,36 +113,11 @@ class Calendar extends React.Component {
{formattedDate} - {dayActivities.map(act => ( - - - activity sport logo s.id === act.sport_id) - .map(s => s.img)} - title={act.title} - /> - {act.records.length > 0 && ( - -