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

Commit 50f210d

Browse files
thabtimmahalwy
authored andcommitted
#372 colon separated surah/ayah (#374)
* #372 colon separated surah/ayah * #372 colon separated surah/ayah * #372 colon separated surah/ayah
1 parent 1a21634 commit 50f210d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/routes.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ export default () => (
2020

2121
<Route path="/search" getComponent={(nextState, cb) => System.import('./containers/Search').then(module => cb(null, module))} />
2222

23+
<Route
24+
path="/:surahId:(:range)"
25+
getComponent={(nextState, cb) => System.import('./containers/Surah').then(module => cb(null, module)).catch(err => console.trace(err))}
26+
onEnter={checkValidSurah}
27+
/>
28+
2329
<Route
2430
path="/:surahId(/:range)"
2531
getComponent={(nextState, cb) => System.import('./containers/Surah').then(module => cb(null, module)).catch(err => console.trace(err))}

0 commit comments

Comments
 (0)