|
@@ -1,6 +1,8 @@
|
1
|
1
|
import React from 'react'
|
2
|
2
|
import PropTypes from 'prop-types'
|
3
|
3
|
|
|
4
|
+require('./DropdownLang.styl')
|
|
5
|
+
|
4
|
6
|
const DropdownLang = props => {
|
5
|
7
|
return (
|
6
|
8
|
<li className='header__menu__rightside__itemlanguage'>
|
|
@@ -16,9 +18,10 @@ const DropdownLang = props => {
|
16
|
18
|
<img className='languagedropdown__btnlanguage__imgselected' src={props.langList.find(l => l.id === props.idLangActive).icon} />
|
17
|
19
|
</button>
|
18
|
20
|
<div className='languagedropdown__subdropdown dropdown-menu' aria-labelledby='headerDropdownMenuButton'>
|
19
|
|
- { props.langList.filter(l => l.id !== props.idLangActive).map((l, i) =>
|
20
|
|
- <div className='subdropdown__link dropdown-item' onClick={() => props.onChangeLang(l.id)} key={i}>
|
|
21
|
+ { props.langList.filter(l => l.id !== props.idLangActive).map(l =>
|
|
22
|
+ <div className='subdropdown__link dropdown-item' onClick={() => props.onChangeLang(l.id)} key={l.id}>
|
21
|
23
|
<img className='subdropdown__flag' src={l.icon} />
|
|
24
|
+ { l.label }
|
22
|
25
|
</div>
|
23
|
26
|
)}
|
24
|
27
|
</div>
|