|
@@ -1,5 +1,6 @@
|
1
|
1
|
import React from 'react'
|
2
|
2
|
import PropTypes from 'prop-types'
|
|
3
|
+import { translate } from 'react-i18next'
|
3
|
4
|
|
4
|
5
|
const ExtandedAction = props => {
|
5
|
6
|
return (
|
|
@@ -22,7 +23,7 @@ const ExtandedAction = props => {
|
22
|
23
|
<i className='fa fa-fw fa-pencil' />
|
23
|
24
|
</div>
|
24
|
25
|
<div className='subdropdown__item__text'>
|
25
|
|
- Modifier
|
|
26
|
+ {props.t('Change')}
|
26
|
27
|
</div>
|
27
|
28
|
</div>
|
28
|
29
|
|
|
@@ -31,7 +32,7 @@ const ExtandedAction = props => {
|
31
|
32
|
<i className='fa fa-fw fa-arrows-alt' />
|
32
|
33
|
</div>
|
33
|
34
|
<div className='subdropdown__item__text'>
|
34
|
|
- Déplacer
|
|
35
|
+ {props.t('Move')}
|
35
|
36
|
</div>
|
36
|
37
|
</div>
|
37
|
38
|
|
|
@@ -40,7 +41,7 @@ const ExtandedAction = props => {
|
40
|
41
|
<i className='fa fa-fw fa-download' />
|
41
|
42
|
</div>
|
42
|
43
|
<div className='subdropdown__item__text'>
|
43
|
|
- Télécharger
|
|
44
|
+ {props.t('Download')}
|
44
|
45
|
</div>
|
45
|
46
|
</div> */ }
|
46
|
47
|
|
|
@@ -49,7 +50,7 @@ const ExtandedAction = props => {
|
49
|
50
|
<i className='fa fa-fw fa-archive' />
|
50
|
51
|
</div>
|
51
|
52
|
<div className='subdropdown__item__text'>
|
52
|
|
- Archiver
|
|
53
|
+ {props.t('Archive')}
|
53
|
54
|
</div>
|
54
|
55
|
</div>
|
55
|
56
|
|
|
@@ -58,7 +59,7 @@ const ExtandedAction = props => {
|
58
|
59
|
<i className='fa fa-fw fa-trash-o' />
|
59
|
60
|
</div>
|
60
|
61
|
<div className='subdropdown__item__text'>
|
61
|
|
- Supprimer
|
|
62
|
+ {props.t('Delete')}
|
62
|
63
|
</div>
|
63
|
64
|
</div>
|
64
|
65
|
|
|
@@ -67,7 +68,7 @@ const ExtandedAction = props => {
|
67
|
68
|
)
|
68
|
69
|
}
|
69
|
70
|
|
70
|
|
-export default ExtandedAction
|
|
71
|
+export default translate()(ExtandedAction)
|
71
|
72
|
|
72
|
73
|
ExtandedAction.propTypes = {
|
73
|
74
|
onClickExtendedAction: PropTypes.object.isRequired
|