Fix many React warnings

This commit is contained in:
Lukas Martinelli
2017-01-10 09:38:27 +01:00
parent ec9fc8f6ad
commit 766a3e387e
6 changed files with 23 additions and 23 deletions
+1 -7
View File
@@ -16,12 +16,6 @@ const Panel = (props) => {
}}>{props.children}</div>
}
function renderFeature(feature) {
return <div>
<Panel>{feature.layer['source-layer']}</Panel>
</div>
}
function groupFeaturesBySourceLayer(features) {
const sources = {}
features.forEach(feature => {
@@ -52,7 +46,7 @@ class FeatureLayerPopup extends React.Component {
{feature.layer.id}
</label>
})
return <div>
return <div key={vectorLayerId}>
<Panel>{vectorLayerId}</Panel>
{layers}
</div>