Skip to content

Commit

Permalink
fix: avoid empty box from showing up when course-about is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tecoholic committed Apr 30, 2024
1 parent 335c0c2 commit 9ddb3da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/course/CourseMainContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const CourseMainContent = () => {
return (
<Col>
{course.fullDescription && (
<div className="mb-5">
<div className="my-5">
<h2>About</h2>
{/* eslint-disable-next-line react/no-danger */}
<div dangerouslySetInnerHTML={{ __html: course.fullDescription }} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/course/routes/CourseAbout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import CourseMainContent from '../CourseMainContent';
const CourseAbout = () => (
<>
<CourseHeader />
<Container size="lg" className="py-5">
<Container size="lg">
<Row>
<CourseMainContent />
</Row>
Expand Down

0 comments on commit 9ddb3da

Please sign in to comment.