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

Commit

Permalink
(#564) Fixes #562 Highlight ayah when playing
Browse files Browse the repository at this point in the history
  • Loading branch information
mmahalwy authored and thabti committed Jan 10, 2017
1 parent a012203 commit 2cea193
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/containers/Surah/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ class Surah extends Component {
this.props.isLoading !== nextProps.isLoading,
this.props.isLoaded !== nextProps.isLoaded,
this.props.options !== nextProps.options,
this.props.currentAyah !== nextProps.currentAyah
this.props.currentAyah !== nextProps.currentAyah,
this.props.isPlaying !== nextProps.isPlaying
];

return conditions.some(condition => condition);
Expand Down Expand Up @@ -300,7 +301,7 @@ class Surah extends Component {
return Object.values(ayahs).map(ayah => (
<Ayah
ayah={ayah}
isCurrentAyah={ayah.ayahKey === currentAyah}
isCurrentAyah={isPlaying && ayah.ayahKey === currentAyah}
bookmarked={!!bookmarks[ayah.ayahKey]}
tooltip={options.tooltip}
bookmarkActions={actions.bookmark}
Expand Down

0 comments on commit 2cea193

Please sign in to comment.