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