Skip to content
This repository was archived by the owner on Jun 28, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
removed bootstrap scripts and descriptions
  • Loading branch information
mmahalwy committed Dec 23, 2016
commit aa6648075ab509c78e15ec8c20037ada31b5e2b2
5 changes: 0 additions & 5 deletions src/components/SurahInfo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ const SurahInfo = ({ surah, isShowingSurahInfo, onClose, loadInfo }) => {
// So we don't need to load images and files unless needed
if (!isShowingSurahInfo) return <noscript />;
if (!surah.info) {
// This will get called twice if we have the component open and navigating between surahs.
// Fine for now. Technically should check for fetching.
// TODO: When Surah component becomes smaller, pass fetching here to avoid rerender.
loadInfo(surah.id);

return <Loader />;
}

Expand Down
1 change: 1 addition & 0 deletions src/containers/About/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export default () => (
help of the open source Muslim community online. Data sources
include <a href="http://www.tanzil.info">Tanzil</a>,
<a href="http://www.qurancomplex.com"> QuranComplex</a>,
<a href="https://github.com/cpfair/quran-align">Colin Fair's work on audio segments</a>,
<a href="http://www.zekr.org"> Zekr</a> and
<a href="http://www.al-quran.info"> Online Qur'an Project</a>.
Special thanks to the
Expand Down
10 changes: 10 additions & 0 deletions src/containers/Surah/connect.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
isAllLoaded,
loadAll,
loadInfo,
setCurrent as setCurrentSurah
} from 'redux/actions/surahs.js';

Expand Down Expand Up @@ -30,6 +31,15 @@ export const surahsConnect = ({ store: { getState, dispatch } }) => {
return true;
};

export const surahInfoConnect = ({ store: { dispatch }, params }) => {
if (__CLIENT__) {
dispatch(loadInfo(params.surahId));
return true;
}

return dispatch(loadInfo(params.surahId));
};

export const ayahsConnect = ({ store: { dispatch, getState }, params }) => {
debug('component:Surah:ayahsConnect', 'Init');

Expand Down
Loading