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); } to { transform: rotate(360deg); }
} }
a {
color: #40578a;
}
.card { .card {
text-align: left; text-align: left;
} }

View File

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

View File

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