fix: remove icon and empty breadcrumb from libraries (#2129)

This commit is contained in:
Diana Villalvazo
2025-06-11 10:36:45 -06:00
committed by GitHub
parent c1d874f94f
commit acef2e70cc

View File

@@ -15,12 +15,11 @@ import {
Breadcrumb,
Button,
Container,
Icon,
Stack,
Tab,
Tabs,
} from '@openedx/paragon';
import { Add, ArrowBack, InfoOutline } from '@openedx/paragon/icons';
import { Add, InfoOutline } from '@openedx/paragon/icons';
import { Link, useLocation } from 'react-router-dom';
import Loading from '../generic/Loading';
@@ -223,16 +222,11 @@ const LibraryAuthoringPage = ({
const breadcumbs = componentPickerMode && !restrictToLibrary ? (
<Breadcrumb
links={[
{
label: '',
to: '',
},
{
label: intl.formatMessage(messages.returnToLibrarySelection),
onClick: returnToLibrarySelection,
},
]}
spacer={<Icon src={ArrowBack} size="sm" />}
linkAs={Link}
/>
) : undefined;