Skip to content

Commit

Permalink
fix chartist import and resolve some nits
Browse files Browse the repository at this point in the history
  • Loading branch information
philippotto committed Oct 29, 2017
1 parent 7368e67 commit dd73446
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/scripts/views/pie_chart.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Chartist from "Chartist";
import Chartist from "chartist";
import PropTypes from "prop-types";
import React, { PureComponent } from "react";

Expand Down
4 changes: 2 additions & 2 deletions app/scripts/views/pitch_settings_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ export default class PitchSettingsView extends Component {
<RangeSettingComponent
rangeMin={50}
rangeMax={99}
values={parseInt(this.props.settings.automaticDifficulty.accuracyGoal * 100, 10)}
values={Math.floor(this.props.settings.automaticDifficulty.accuracyGoal * 100)}
onChange={value => accuracyStateChanger(value / 100)}
valueToString={el => `${el}%`}
label={"Accuracy goal"}
/>
<RangeSettingComponent
rangeMin={10}
rangeMax={100}
values={parseInt(this.props.settings.automaticDifficulty.newNotesShare * 100, 10)}
values={Math.floor(this.props.settings.automaticDifficulty.newNotesShare * 100)}
onChange={value => newNotesShareStateChanger(value / 100)}
valueToString={el => `${el}%`}
label={"Share of new notes"}
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/views/pitch_statistic_view.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Chartist from "Chartist";
import Chartist from "chartist";
import React, { Component } from "react";
import PropTypes from "prop-types";
import { Tooltip, OverlayTrigger } from "react-bootstrap";
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/views/range_setting_component.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class RangeSettingComponent extends Component {
}

/**
* Converts values recieved as props to expected form for state
* Converts values received as props to expected form for state
*
* @param {number | {from: number, to: number}} values
* @returns {number[]}
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/views/rhythm_statistic_view.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Chartist from "Chartist";
import Chartist from "chartist";
import React, { Component } from "react";
import PropTypes from "prop-types";
import { Tooltip, OverlayTrigger } from "react-bootstrap";
Expand Down

0 comments on commit dd73446

Please sign in to comment.