Prettier
parent
532a6a8c48
commit
e1ab849b63
|
@ -15,7 +15,9 @@ const GraphTypeSelector = ({selectedGraphType, onSelectGraphType}) =>
|
||||||
>
|
>
|
||||||
<div onClick={() => onSelectGraphType(graphType.type)}>
|
<div onClick={() => onSelectGraphType(graphType.type)}>
|
||||||
{graphType.graphic}
|
{graphType.graphic}
|
||||||
<p>{graphType.menuOption}</p>
|
<p>
|
||||||
|
{graphType.menuOption}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -22,17 +22,17 @@ const Ranger = ({onSetRange, axes}) => {
|
||||||
/>
|
/>
|
||||||
</div> */}
|
</div> */}
|
||||||
<div className="form-group col-sm-6">
|
<div className="form-group col-sm-6">
|
||||||
<label htmlFor="min">Lower Bound</label>
|
<label htmlFor="min">Min</label>
|
||||||
<GrooveKnob
|
<GrooveKnob
|
||||||
onSetValues={({leftValue, rightValue}) => {
|
onSetValues={({leftValue, rightValue}) => {
|
||||||
console.log(leftValue, rightValue)
|
console.log(leftValue, rightValue)
|
||||||
// onSetRange()
|
// onSetRange()
|
||||||
}}
|
}}
|
||||||
rightValue={Number(min)}
|
rightValue={min}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="form-group col-sm-6">
|
<div className="form-group col-sm-6">
|
||||||
<label htmlFor="max">Upper Bound</label>
|
<label htmlFor="max">Max</label>
|
||||||
<input
|
<input
|
||||||
className="form-control input-sm"
|
className="form-control input-sm"
|
||||||
type="number"
|
type="number"
|
||||||
|
|
|
@ -81,7 +81,8 @@ class DashboardPage extends Component {
|
||||||
|
|
||||||
handleCloseTemplateManager(isEdited) {
|
handleCloseTemplateManager(isEdited) {
|
||||||
if (
|
if (
|
||||||
!isEdited || (isEdited && confirm('Do you want to close without saving?')) // eslint-disable-line no-alert
|
!isEdited ||
|
||||||
|
(isEdited && confirm('Do you want to close without saving?')) // eslint-disable-line no-alert
|
||||||
) {
|
) {
|
||||||
this.setState({isTemplating: false})
|
this.setState({isTemplating: false})
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,9 @@ class GrooveKnob extends Component {
|
||||||
<div
|
<div
|
||||||
className={classnames('one-or-any', {'use-right-value': !useLeftValue})}
|
className={classnames('one-or-any', {'use-right-value': !useLeftValue})}
|
||||||
>
|
>
|
||||||
<div className="one-or-any--auto">{leftLabel}</div>
|
<div className="one-or-any--auto">
|
||||||
|
{leftLabel}
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
className="one-or-any--switch"
|
className="one-or-any--switch"
|
||||||
onClick={this.handleToggleLeftValue}
|
onClick={this.handleToggleLeftValue}
|
||||||
|
|
Loading…
Reference in New Issue