Client - fix translation

This commit is contained in:
Sam 2019-09-16 13:08:58 +02:00
parent 131f315911
commit 0443a4e3c9
2 changed files with 1 additions and 5 deletions

View File

@ -1,5 +1,4 @@
import React from 'react'
import { Helmet } from 'react-helmet'
import { connect } from 'react-redux'
import { Redirect, Route, Switch } from 'react-router-dom'
@ -12,9 +11,6 @@ import { isLoggedIn } from '../../utils'
function Activity() {
return (
<div>
<Helmet>
<title>FitTrackee - Admin</title>
</Helmet>
{isLoggedIn() ? (
<Switch>
<Route exact path="/activities/add" component={ActivityAdd} />

View File

@ -244,7 +244,7 @@ class ProfileEdit extends React.Component {
}
}
export default withTranslation(
export default withTranslation()(
connect(
state => ({
location: state.router.location,