Show choose public sources first #64

This commit is contained in:
Lukas Martinelli 2017-01-11 16:26:14 +01:00
parent bbe45cf8ee
commit 6c56006fbf

View file

@ -210,9 +210,20 @@ class SourcesModal extends React.Component {
title={'Sources'}
>
<div className="maputnik-modal-section">
<h4>Active Sources</h4>
{activeSources}
<h4>Active Sources</h4>
{activeSources}
</div>
<div className="maputnik-modal-section">
<h4>Choose Public Source</h4>
<p>
Add one of the publicly availble sources to your style.
</p>
<div style={{maxwidth: 500}}>
{tilesetOptions}
</div>
</div>
<div className="maputnik-modal-section">
<h4>Add New Source</h4>
<p>Add a new source to your style. You can only choose the source type and id at creation time!</p>
@ -220,17 +231,6 @@ class SourcesModal extends React.Component {
onAdd={(sourceId, source) => this.props.onStyleChanged(addSource(mapStyle, sourceId, source))}
/>
</div>
<div className="maputnik-modal-section">
<h4>Choose Public Source</h4>
<p>
Add one of the publicly availble sources to your style.
</p>
</div>
<div style={{maxwidth: 500}}>
{tilesetOptions}
</div>
</Modal>
}
}