Skip to content
This repository was archived by the owner on Jun 28, 2021. It is now read-only.

Commit c5622b1

Browse files
committed
383 lint-roller :bowtie:
1 parent 0def82e commit c5622b1

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

src/components/Ayah/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ export default class Ayah extends Component {
2222
isSearch: PropTypes.bool,
2323
tooltip: PropTypes.string,
2424
currentWord: PropTypes.any, // gets passed in an integer, null by default
25-
onWordClick: PropTypes.func.isRequired
25+
onWordClick: PropTypes.func.isRequired,
26+
actions: PropTypes.object.isRequired
2627
};
2728

2829
static defaultProps = {
@@ -46,7 +47,7 @@ export default class Ayah extends Component {
4647

4748
handlePlay(ayah) {
4849

49-
const{stop, setAyah, start} = this.props.actions;
50+
const {stop, setAyah, start} = this.props.actions;
5051

5152
stop();
5253
setAyah(ayah);

src/containers/Surah/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component, PropTypes } from 'react';
22
import Link from 'react-router/lib/Link';
33
// redux
4-
import { bindActionCreators } from 'redux'
4+
import { bindActionCreators } from 'redux';
55
import { connect } from 'react-redux';
66
import { asyncConnect } from 'redux-connect';
77
import { push } from 'react-router-redux';
@@ -174,7 +174,7 @@ class Surah extends Component {
174174
}
175175

176176
handleLazyLoadAyahs = (callback) => {
177-
const { loadAyahs, ayahIds, surah, isEndOfSurah, options, actions } = this.props; // eslint-disable-line no-shadow, max-len
177+
const { ayahIds, surah, isEndOfSurah, options, actions } = this.props; // eslint-disable-line no-shadow, max-len
178178
const range = [this.getFirst(), this.getLast()];
179179

180180
let size = 10;
@@ -360,7 +360,7 @@ class Surah extends Component {
360360
}
361361

362362
render() {
363-
const { surah, surahs, ayahIds, options, actions } = this.props;
363+
const { surah, surahs, ayahIds, options } = this.props;
364364

365365
debug('component:Surah', 'Render');
366366

@@ -476,9 +476,9 @@ function mapDispatchToProps(dispatch) {
476476
options: bindActionCreators(OptionsActions, dispatch),
477477
ayah: bindActionCreators(AyahActions, dispatch),
478478
audio: bindActionCreators(AudioActions, dispatch),
479-
push: bindActionCreators(push, dispatch)
479+
push: bindActionCreators(push, dispatch)
480480
}
481-
}
481+
};
482482
}
483483

484484
function mapStateToProps(state, ownProps) {

src/redux/modules/audioplayer.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,15 @@ export default function reducer(state = initialState, action = {}) {
182182
...state,
183183
segments: {
184184
...state.segments,
185-
[surahId]: {
186-
...state.segments[surahId],
187-
[currentAyah]: buildSegments(state.segments[surahId][currentAyah])
188-
}
189-
},
190-
currentAyah: currentAyah,
191-
currentFile: state.files[surahId][currentAyah],
192-
currentTime: 0
193-
};
185+
[surahId]: {
186+
...state.segments[surahId],
187+
[currentAyah]: buildSegments(state.segments[surahId][currentAyah])
188+
}
189+
},
190+
currentAyah,
191+
currentFile: state.files[surahId][currentAyah],
192+
currentTime: 0
193+
};
194194
}
195195

196196
case PREVIOUS: {

0 commit comments

Comments
 (0)