From d3276829b2c63a975bcd8a0cadcf1e95cab4c2e1 Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Mon, 9 Jan 2017 22:44:22 +0100 Subject: [PATCH] Show hints in the source modal as well --- src/components/modals/SettingsModal.jsx | 6 +++--- src/components/modals/SourcesModal.jsx | 5 +++-- src/components/sources/SourceTypeEditor.jsx | 11 ++++++----- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/components/modals/SettingsModal.jsx b/src/components/modals/SettingsModal.jsx index f977aee..7a2e419 100644 --- a/src/components/modals/SettingsModal.jsx +++ b/src/components/modals/SettingsModal.jsx @@ -46,7 +46,7 @@ class SettingsModal extends React.Component { onOpenToggle={this.props.onOpenToggle} title={'Style Settings'} > - + - + - + - + this.setState({ sourceId: v})} /> - + + return this.props.onChange({ @@ -32,7 +33,7 @@ class TileURLSourceEditor extends React.Component { const prefix = ['1st', '2nd', '3rd', '4th', '5th', '6th', '7th'] const tiles = this.props.source.tiles || [] return tiles.map((tileUrl, tileIndex) => { - return + return @@ -43,7 +44,7 @@ class TileURLSourceEditor extends React.Component { render() { return
{this.renderTileUrls()} - + this.props.onChange({ @@ -52,7 +53,7 @@ class TileURLSourceEditor extends React.Component { })} /> - + this.props.onChange({ @@ -73,7 +74,7 @@ class GeoJSONSourceEditor extends React.Component { } render() { - return + return this.props.onChange({