diff --git a/services/web/frontend/js/features/outline/components/outline-item.js b/services/web/frontend/js/features/outline/components/outline-item.js index 273c06080f..b1214d28bb 100644 --- a/services/web/frontend/js/features/outline/components/outline-item.js +++ b/services/web/frontend/js/features/outline/components/outline-item.js @@ -4,6 +4,7 @@ import scrollIntoViewIfNeeded from 'scroll-into-view-if-needed' import classNames from 'classnames' import { useTranslation } from 'react-i18next' import OutlineList from './outline-list' +import Icon from '../../../shared/components/icon' function getChildrenLines(children) { return (children || []) @@ -24,11 +25,6 @@ function OutlineItem({ outlineItem, jumpToLine, highlightedLine }) { 'outline-item-no-children': !outlineItem.children }) - const expandCollapseIconClasses = classNames('fa', 'outline-caret-icon', { - 'fa-angle-down': expanded, - 'fa-angle-right': !expanded - }) - const hasHighlightedChild = !expanded && getChildrenLines(outlineItem.children).includes(highlightedLine) @@ -85,7 +81,10 @@ function OutlineItem({ outlineItem, jumpToLine, highlightedLine }) { onClick={handleExpandCollapseClick} aria-label={expanded ? t('collapse') : t('expand')} > - + ) : null}