fix: Update add content existing content icons in section/subsection pages (#2224)

This commit is contained in:
Chris Chávez
2025-07-03 02:36:19 -05:00
committed by GitHub
parent ad62519af7
commit ffd430d321

View File

@@ -144,12 +144,21 @@ const AddContentView = ({
/>
);
let existingContentIcon = getItemIcon('libraryContent');
if (insideSection) {
existingContentIcon = getItemIcon('subsection');
} else if (insideSubsection) {
existingContentIcon = getItemIcon('unit');
}
const existingContentButton = (
<AddContentButton
key="libraryContent"
contentType={{
name: intl.formatMessage(contentMessages.libraryContentButton),
blockType: 'libraryContent',
icon: existingContentIcon,
}}
onCreateContent={onCreateContent}
/>