Skip to content

Commit

Permalink
Add Surah number/range
Browse files Browse the repository at this point in the history
  • Loading branch information
osamasayed committed Sep 12, 2024
1 parent 0b6f87a commit 3c76578
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components/MediaMaker/Content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const MediaMakerContent: React.FC<Props> = ({

const videoPath = staticFile(`${isPlayer ? '/publicMin' : ''}${video.videoSrc}`);
const isPortrait = orientation === Orientation.PORTRAIT;
const isSameVerse = verses.length === 1;
return (
<AbsoluteFill
style={{
Expand Down Expand Up @@ -134,9 +135,13 @@ const MediaMakerContent: React.FC<Props> = ({
<span
className={styles.surahArabic}
>{`${WORD_SURAH} ${chapter?.translatedName}`}</span>
<span
className={styles.surahEnglish}
>{` - ${chapterEnglishName} (Ch. ${verse.chapterId})`}</span>
<span className={styles.surahEnglish}>
{` - ${chapterEnglishName} (${verse.chapterId}:${
isSameVerse
? verse.verseNumber
: `${verses[0].verseNumber}-${verses[verses.length - 1].verseNumber}`
})`}
</span>
</div>
</div>
</AbsoluteFill>
Expand Down

0 comments on commit 3c76578

Please sign in to comment.