Skip to content

Commit

Permalink
refactor: remove unnecessary h5 class
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera committed Nov 27, 2023
1 parent c0b8786 commit c5dce79
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/course-outline/status-bar/StatusBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const StatusBar = ({
return (
<Stack direction="horizontal" gap={3.5} className="outline-status-bar" data-testid="outline-status-bar">
<div className="outline-status-bar__item">
<h5 className="h5">{intl.formatMessage(messages.startDateTitle)}</h5>
<h5>{intl.formatMessage(messages.startDateTitle)}</h5>
<Hyperlink
className="small"
destination={scheduleDestination}
Expand All @@ -52,15 +52,15 @@ const StatusBar = ({
</Hyperlink>
</div>
<div className="outline-status-bar__item">
<h5 className="h5">{intl.formatMessage(messages.pacingTypeTitle)}</h5>
<h5>{intl.formatMessage(messages.pacingTypeTitle)}</h5>
<span className="small">
{isSelfPaced
? intl.formatMessage(messages.pacingTypeSelfPaced)
: intl.formatMessage(messages.pacingTypeInstructorPaced)}
</span>
</div>
<div className="outline-status-bar__item mr-4">
<h5 className="h5">{intl.formatMessage(messages.checklistTitle)}</h5>
<h5>{intl.formatMessage(messages.checklistTitle)}</h5>
<Hyperlink
className="small"
destination={checklistDestination}
Expand All @@ -70,10 +70,12 @@ const StatusBar = ({
</Hyperlink>
</div>
<div className="outline-status-bar__item ml-4">
<h5 className="h5">{intl.formatMessage(messages.highlightEmailsTitle)}</h5>
<h5>{intl.formatMessage(messages.highlightEmailsTitle)}</h5>
<div className="d-flex align-items-end">
{highlightsEnabledForMessaging ? (
<span className="small">{intl.formatMessage(messages.highlightEmailsEnabled)}</span>
<span data-testid="highlights-enabled-span" className="small">
{intl.formatMessage(messages.highlightEmailsEnabled)}
</span>
) : (
<Button size="sm" onClick={openEnableHighlightsModal}>
{intl.formatMessage(messages.highlightEmailsButton)}
Expand Down

0 comments on commit c5dce79

Please sign in to comment.