Client: minor styles changes

This commit is contained in:
Sam 2018-06-07 12:58:23 +02:00
parent 1fce13b9d0
commit 1e1d968fdf
3 changed files with 6 additions and 2 deletions

View File

@ -41,6 +41,10 @@
to { transform: rotate(360deg); }
}
a {
color: #40578a;
}
.card {
text-align: left;
}

View File

@ -1,3 +1,4 @@
import { format } from 'date-fns'
import React from 'react'
import { Link } from 'react-router-dom'
@ -12,7 +13,7 @@ export default function ActivityCard (props) {
<Link to={`/activities/${activity.id}`}>
{sports.filter(sport => sport.id === activity.sport_id)
.map(sport => sport.label)} -{' '}
{activity.activity_date}
{format(activity.activity_date, 'DD/MM/YYYY HH:mm')}
</Link>
</div>
<div className="card-body">

View File

@ -85,7 +85,6 @@ class Statistics extends React.Component {
<XAxis
dataKey="date"
interval={0} // to force to display all ticks
label={{ value: 'date', offset: 0, position: 'bottom' }}
/>
<YAxis
tickFormatter={value => displayedData === 'distance'