Client: refactor + minor changes

This commit is contained in:
Sam 2018-06-07 13:16:52 +02:00
parent 1e1d968fdf
commit 424df3b721
15 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ import { Redirect, Route, Switch } from 'react-router-dom'
import './App.css'
import Admin from './Admin'
import Activity from './Activities/index'
import Activity from './Activity/index'
import Dashboard from './Dashboard'
import Logout from './User/Logout'
import NavBar from './NavBar'

View File

@ -45,7 +45,7 @@ class Statistics extends React.Component {
</div>
<div className="card-body">
{Object.keys(statistics).length === 0 ? (
'No activities!'
'No workouts'
) : (
<div className="chart-month">
<div className="row chart-radio">

View File

@ -13,7 +13,7 @@ export default function UserStatistics (props) {
</div>
<div className="col-9 text-right">
<div className="huge">{user.nbActivities}</div>
<div>{user.nbActivities === 1 ? 'activity' : 'activities'}</div>
<div>{`workout${user.nbActivities !== 1 && 's'}`}</div>
</div>
</div>
</div>

View File

@ -42,7 +42,7 @@ function NavBar(props) {
pathname: '/activities/add',
}}
>
Add a workout
Add workout
</Link>
</li>
)}