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

Issue #472: Added tooltip prop for Ayah component in Search page #474

Merged
merged 1 commit into from
Sep 12, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/containers/Search/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class Search extends Component {
}

renderBody() {
const { isErrored, isLoading, total, results, ayahs } = this.props;
const { isErrored, isLoading, total, results,options, ayahs } = this.props;

if (isErrored) {
return (
Expand All @@ -128,7 +128,7 @@ class Search extends Component {
}

return results.map(result => (
<Ayah ayah={ayahs[result.ayah]} match={result.match} key={result.ayah} isSearched />
<Ayah ayah={ayahs[result.ayah]} match={result.match} key={result.ayah} tooltip={options.tooltip} isSearched />
));
}

Expand Down