Skip to content

Commit f5cfe9c

Browse files
committed
Enable/disable the date slider
1 parent 3bc24d2 commit f5cfe9c

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

src/components/changeset/map_options.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,14 @@ class MapOptions extends React.PureComponent {
152152
))}
153153
</select>
154154
</section>
155-
<section className="cmap-filter-type-section cmap-pb3 mt3">
156-
<h6 className="txt-bold">Filter map style by date</h6>
157-
<div className="mt6">
158-
<HistoricalDateSlider handleDateChange={handleDateChange} />
159-
</div>
160-
</section>
155+
{this.props.style === 'ohm' ? (
156+
<section className="cmap-filter-type-section cmap-pb3">
157+
<h6 className="txt-bold">Filter map style by date</h6>
158+
<div className="mt6">
159+
<HistoricalDateSlider handleDateChange={handleDateChange} />
160+
</div>
161+
</section>
162+
) : null}
161163
</div>
162164
);
163165
}

src/config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const appVersion = pkg.version;
1010

1111
let url =
1212
process.env.REACT_APP_PRODUCTION_API_URL ||
13-
'https://osmcha.dev.staging.openhistoricalmap.org/api/v1';
13+
'https://osmcha.openhistoricalmap.org/api/v1';
1414

1515
window.debug_info = () =>
1616
`isDev=${isDev.toString()} isStaging=${isStaging.toString()} isProd=${isProd.toString()} isLocal=${isLocal.toString()} stack=${stack ||

src/store/map_controls_reducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MAPCONTROLS } from './map_controls_actions';
66
export type mapControlsReducerType = Map<'style', any>;
77

88
const mapControlsInitial: mapControlsReducerType = fromJS({
9-
style: 'ohm_historical'
9+
style: 'ohm'
1010
});
1111

1212
export function mapControlsReducer(

0 commit comments

Comments
 (0)