Skip to content

Commit

Permalink
Do now show lessons heading on courses with chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
podlomar committed Mar 3, 2024
1 parent 3959551 commit d0897cd
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const ChapterPage = async ({ params }: Props): Promise<JSX.Element> => {
<p className={styles.lead}>{course.lead}</p>
</div>
</div>
{ course.intro && (
{ course.intro !== null && (
<>
<div className={styles.courseInfo}>
{ course.intro.items.map((item) => (
Expand All @@ -92,9 +92,11 @@ const ChapterPage = async ({ params }: Props): Promise<JSX.Element> => {
{/* <p>
<a href="https://forms.gle/2vDy6sYrrhTioEP89" className={styles.register}>Přihlásit se na kurz</a>
</p> */}
<div className={styles.lessonsHeading}>
<h2>Lekce</h2>
</div>
{ chapter.name === 'lekce' && course.intro !== null && course.intro.items.length > 0 && (
<div className={styles.lessonsHeading}>
<h2>Lekce</h2>
</div>
)}
</>
)}
{
Expand Down

0 comments on commit d0897cd

Please sign in to comment.