Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

revert prop name to hasSubdailyLayers

Jason Kent54b295538e20
diff --git a/web/js/components/timeline/custom-interval-selector/interval-select.js b/web/js/components/timeline/custom-interval-selector/interval-select.js
index cbeb43730..7726f2709 100644
--- a/web/js/components/timeline/custom-interval-selector/interval-select.js
+++ b/web/js/components/timeline/custom-interval-selector/interval-select.js
@@ -20,7 +20,7 @@ class TimeScaleSelect extends PureComponent {
render() {
let {
zoomLevel,
- subDailyMode
+ hasSubdailyLayers
} = this.props;
return (
<form
@@ -35,7 +35,7 @@ class TimeScaleSelect extends PureComponent {
<option className="custom-interval-timescale-select-option" value="year">year</option>
<option className="custom-interval-timescale-select-option" value="month">month</option>
<option className="custom-interval-timescale-select-option" value="day">day</option>
- {subDailyMode
+ {hasSubdailyLayers
? <React.Fragment>
<option className="custom-interval-timescale-select-option" value="hour">hour</option>
<option className="custom-interval-timescale-select-option" value="minute">minute</option>
@@ -50,7 +50,7 @@ class TimeScaleSelect extends PureComponent {
TimeScaleSelect.propTypes = {
changeZoomLevel: PropTypes.func,
- subDailyMode: PropTypes.bool,
+ hasSubdailyLayers: PropTypes.bool,
zoomLevel: PropTypes.string
};
diff --git a/web/js/components/timeline/custom-interval-selector/interval-selector-widget.js b/web/js/components/timeline/custom-interval-selector/interval-selector-widget.js
index 6ff28228d..58d2cdfe0 100644
--- a/web/js/components/timeline/custom-interval-selector/interval-selector-widget.js
+++ b/web/js/components/timeline/custom-interval-selector/interval-selector-widget.js
@@ -39,7 +39,7 @@ class CustomIntervalSelectorWidget extends PureComponent {
render() {
let {
customIntervalModalOpen,
- subDailyMode,
+ hasSubdailyLayers,
customDelta,
customIntervalZoomLevel
} = this.props;
@@ -57,7 +57,7 @@ class CustomIntervalSelectorWidget extends PureComponent {
changeDelta={this.changeDelta}
/>
<TimeScaleSelect
- subDailyMode={subDailyMode}
+ hasSubdailyLayers={hasSubdailyLayers}
zoomLevel={timeScaleFromNumberKey[customIntervalZoomLevel]}
changeZoomLevel={this.changeZoomLevel}
/>
@@ -73,7 +73,7 @@ CustomIntervalSelectorWidget.propTypes = {
customDelta: PropTypes.number,
customIntervalModalOpen: PropTypes.bool,
customIntervalZoomLevel: PropTypes.number,
- subDailyMode: PropTypes.bool,
+ hasSubdailyLayers: PropTypes.bool,
toggleCustomIntervalModal: PropTypes.func
};
diff --git a/web/js/components/timeline/timeline-controls/interval-timescale-change.js b/web/js/components/timeline/timeline-controls/interval-timescale-change.js
index 74f7a3bf9..1ce2f8149 100644
--- a/web/js/components/timeline/timeline-controls/interval-timescale-change.js
+++ b/web/js/components/timeline/timeline-controls/interval-timescale-change.js
@@ -98,7 +98,7 @@ class TimeScaleIntervalChange extends PureComponent {
} = this.state;
let {
customSelected,
- subDailyMode,
+ hasSubdailyLayers,
timeScaleChangeUnit
} = this.props;
return (
@@ -142,7 +142,7 @@ class TimeScaleIntervalChange extends PureComponent {
>
Day
</span>
- {subDailyMode ? (
+ {hasSubdailyLayers ? (
<React.Fragment>
<span
id="interval-hours"
@@ -187,8 +187,8 @@ TimeScaleIntervalChange.propTypes = {
customDelta: PropTypes.number,
customIntervalZoomLevel: PropTypes.string,
customSelected: PropTypes.bool,
+ hasSubdailyLayers: PropTypes.bool,
setTimeScaleIntervalChangeUnit: PropTypes.func,
- subDailyMode: PropTypes.bool,
timeScaleChangeUnit: PropTypes.string
};
diff --git a/web/js/containers/animation-widget.js b/web/js/containers/animation-widget.js
index f30d53284..a73700fb6 100644
--- a/web/js/containers/animation-widget.js
+++ b/web/js/containers/animation-widget.js
@@ -344,7 +344,7 @@ class AnimationWidget extends React.Component {
customSelected={customSelected}
customDelta={customDelta}
timeScaleChangeUnit={interval}
- subDailyMode={hasSubdailyLayers}
+ hasSubdailyLayers={hasSubdailyLayers}
/>
{' Increments'}
</div>
@@ -423,7 +423,7 @@ class AnimationWidget extends React.Component {
toggleCustomIntervalModal={this.toggleCustomIntervalModal}
customIntervalModalOpen={customIntervalModalOpen}
changeCustomInterval={this.changeCustomInterval}
- subDailyMode={hasSubdailyLayers}
+ hasSubdailyLayers={hasSubdailyLayers}
/>
</div>
</ErrorBoundary>
diff --git a/web/js/containers/timeline/timeline.js b/web/js/containers/timeline/timeline.js
index e29a06cfb..ec00bda89 100644
--- a/web/js/containers/timeline/timeline.js
+++ b/web/js/containers/timeline/timeline.js
@@ -858,7 +858,7 @@ class Timeline extends React.Component {
customSelected={customSelected}
customDelta={customIntervalValue}
timeScaleChangeUnit={timeScaleChangeUnit}
- subDailyMode={hasSubdailyLayers}
+ hasSubdailyLayers={hasSubdailyLayers}
/>
<DateChangeArrows
leftArrowDown={this.throttleDecrementDate}
@@ -1016,7 +1016,7 @@ class Timeline extends React.Component {
toggleCustomIntervalModal={this.toggleCustomIntervalModal}
customIntervalModalOpen={customIntervalModalOpen}
changeCustomInterval={this.changeCustomInterval}
- subDailyMode={hasSubdailyLayers}
+ hasSubdailyLayers={hasSubdailyLayers}
/>
</div>