diff --git a/src/course-home/outline-tab/Section.jsx b/src/course-home/outline-tab/Section.jsx index 4e013c73cb..ca64cdb251 100644 --- a/src/course-home/outline-tab/Section.jsx +++ b/src/course-home/outline-tab/Section.jsx @@ -2,11 +2,11 @@ import React, { useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import { injectIntl, intlShape } from '@edx/frontend-platform/i18n'; import { Collapsible, IconButton, Icon } from '@openedx/paragon'; -import { faCheckCircle as fasCheckCircle, faMinus, faPlus } from '@fortawesome/free-solid-svg-icons'; +import { faCheckCircle as fasCheckCircle } from '@fortawesome/free-solid-svg-icons'; import { faCheckCircle as farCheckCircle } from '@fortawesome/free-regular-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; -import { DisabledVisible } from '@openedx/paragon/icons'; +import { Add, DisabledVisible, Minus } from '@openedx/paragon/icons'; import SequenceLink from './SequenceLink'; import { useModel } from '../../generic/model-store'; @@ -40,7 +40,7 @@ const Section = ({ useEffect(() => { setOpen(defaultOpen); - // eslint-disable-next-line react-hooks/exhaustive-deps + // eslint-disable-next-line react-hooks/exhaustive-deps }, []); const sectionTitle = ( @@ -71,16 +71,16 @@ const Section = ({ {hideFromTOC && ( -
- {hideFromTOC && ( - - - - {intl.formatMessage(messages.hiddenSection)} +
+ {hideFromTOC && ( + + + + {intl.formatMessage(messages.hiddenSection)} + - - )} -
+ )} +
)} ); @@ -96,7 +96,7 @@ const Section = ({ iconWhenClosed={( { setOpen(true); }} size="sm" /> @@ -104,7 +104,7 @@ const Section = ({ iconWhenOpen={( { setOpen(false); }} size="sm" />