From 66e9db3713d54c67be1cf2bef1b0633db084649c Mon Sep 17 00:00:00 2001
From: Clemens <cle1000.cb@gmail.com>
Date: Thu, 18 Aug 2016 18:05:38 +0200
Subject: refactor contentviews, dropdown, filemenu and footer

---
 web/src/js/components/common/Dropdown.jsx | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

(limited to 'web/src/js/components/common/Dropdown.jsx')

diff --git a/web/src/js/components/common/Dropdown.jsx b/web/src/js/components/common/Dropdown.jsx
index 9180767f..9db131d4 100644
--- a/web/src/js/components/common/Dropdown.jsx
+++ b/web/src/js/components/common/Dropdown.jsx
@@ -1,6 +1,8 @@
 import React, { Component, PropTypes } from 'react'
 import classnames from 'classnames'
 
+export function Divider () { return  <hr className="divider"/>}
+
 export default class Dropdown extends Component {
 
     static propTypes = {
@@ -43,12 +45,7 @@ export default class Dropdown extends Component {
                     {text}
                 </a>
                 <ul className="dropdown-menu" role="menu">
-                    {children.map(item =>
-                        item.name == "divider" ?
-                            <li role="presentation" className="divider"/>
-                        :
-                            <li> {item} </li>
-                    )}
+                    {children.map ( (item, i) =>  <li key={i}> {item} </li> )}
                 </ul>
             </div>
         )
-- 
cgit v1.2.3

