Skip to content

Commit

Permalink
Fix errors found at runtime due to updating React
Browse files Browse the repository at this point in the history
  • Loading branch information
Graham42 committed Oct 7, 2017
1 parent b6f5484 commit e058c5a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/scripts/views/beat_visualization.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export default class BeatVisualization extends Component {
settings: PropTypes.object.isRequired,
barDuration: PropTypes.number.isRequired,
currentRhythm: PropTypes.object.isRequired,
beatHistory: PropTypes.object.isRequired,
result: PropTypes.object.isRequired
beatHistory: PropTypes.array.isRequired,
result: PropTypes.object
};

convertTicksToBeatNames(tickTime, tickLength) {
Expand Down
3 changes: 1 addition & 2 deletions app/scripts/views/metronome_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import CollapsableContainer from "./collapsable_container.js";
export default class MetronomeView extends Component {
static propTypes = {
onMetronomeEnded: PropTypes.func,
settings: PropTypes.object.isRequired,
statisticService: PropTypes.object.isRequired
settings: PropTypes.object.isRequired
};

constructor(props, context) {
Expand Down
2 changes: 0 additions & 2 deletions app/scripts/views/newsletter_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ export default class NewsLetterForm extends Component {
this.email = c;
}}
className="form-control"
groupClassName="group-class"
labelClassName="label-class"
/>
</div>
</div>
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 @@ -15,7 +15,7 @@ export default class RangeSettingComponent extends Component {
static propTypes = {
rangeMin: PropTypes.number.isRequired,
rangeMax: PropTypes.number.isRequired,
values: PropTypes.array,
values: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number]),
onChange: PropTypes.func.isRequired,
label: PropTypes.string,
valueToString: PropTypes.func,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"lodash": "^4.5.1",
"prop-types": "^15.5.10",
"react": "^15.6.1",
"react-bootstrap": "^0.28.3",
"react-bootstrap": "^0.31.1",
"react-dom": "^15.6.1",
"react-motion": "^0.5.0",
"react-range-slider-bem": "^0.2.11",
Expand Down

0 comments on commit e058c5a

Please sign in to comment.