We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad62519 commit ffd430dCopy full SHA for ffd430d
src/library-authoring/add-content/AddContent.tsx
@@ -144,12 +144,21 @@ const AddContentView = ({
144
/>
145
);
146
147
+ let existingContentIcon = getItemIcon('libraryContent');
148
+
149
+ if (insideSection) {
150
+ existingContentIcon = getItemIcon('subsection');
151
+ } else if (insideSubsection) {
152
+ existingContentIcon = getItemIcon('unit');
153
+ }
154
155
const existingContentButton = (
156
<AddContentButton
157
key="libraryContent"
158
contentType={{
159
name: intl.formatMessage(contentMessages.libraryContentButton),
160
blockType: 'libraryContent',
161
+ icon: existingContentIcon,
162
}}
163
onCreateContent={onCreateContent}
164
0 commit comments