|
@@ -2,6 +2,7 @@ import React from 'react'
|
2
|
2
|
import { Link } from 'react-router-dom'
|
3
|
3
|
import PropTypes from 'prop-types'
|
4
|
4
|
import { PAGE } from '../../../helper.js'
|
|
5
|
+import { translate } from 'react-i18next'
|
5
|
6
|
|
6
|
7
|
const MenuProfil = props => {
|
7
|
8
|
return props.user.logged
|
|
@@ -17,12 +18,12 @@ const MenuProfil = props => {
|
17
|
18
|
<div className='profilgroup__setting dropdown-menu' aria-labelledby='dropdownMenuButton'>
|
18
|
19
|
<Link className='setting__link dropdown-item' to={PAGE.ACCOUNT}>
|
19
|
20
|
<i className='fa fa-fw fa-user-o mr-2' />
|
20
|
|
- Mon compte
|
|
21
|
+ {props.t('My Account')}
|
21
|
22
|
</Link>
|
22
|
23
|
{/* <div className='setting__link dropdown-item'>Mot de passe</div> */}
|
23
|
24
|
<div className='setting__link dropdown-item' onClick={props.onClickLogout}>
|
24
|
25
|
<i className='fa fa-fw fa-sign-out mr-2' />
|
25
|
|
- Se déconnecter
|
|
26
|
+ {props.t('Logout')}
|
26
|
27
|
</div>
|
27
|
28
|
</div>
|
28
|
29
|
</div>
|
|
@@ -30,7 +31,7 @@ const MenuProfil = props => {
|
30
|
31
|
)
|
31
|
32
|
: ''
|
32
|
33
|
}
|
33
|
|
-export default MenuProfil
|
|
34
|
+export default translate()(MenuProfil)
|
34
|
35
|
|
35
|
36
|
MenuProfil.propTypes = {
|
36
|
37
|
user: PropTypes.object.isRequired,
|