Skip to content

Commit 2c15130

Browse files
committed
feat: Add create components workflow in unit page
1 parent e35b0bc commit 2c15130

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

src/library-authoring/LibraryAuthoringPage.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,6 @@ const HeaderActions = () => {
9696
{intl.formatMessage(messages.newContentButton)}
9797
</Button>
9898
)}
99-
{/* This button is temporal in this commit */}
100-
<Button
101-
className="ml-1"
102-
iconBefore={Add}
103-
variant="primary rounded-0"
104-
onClick={openAddContentSidebar}
105-
disabled={readOnly}
106-
>
107-
Add Content
108-
</Button>
10999
</div>
110100
);
111101
};

src/library-authoring/units/LibraryUnitPage.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const HeaderActions = () => {
2626

2727
const { unitId, readOnly } = useLibraryContext();
2828
const {
29+
openAddContentSidebar,
2930
closeLibrarySidebar,
3031
openUnitInfoSidebar,
3132
sidebarComponentInfo,
@@ -64,6 +65,7 @@ const HeaderActions = () => {
6465
iconBefore={Add}
6566
variant="primary rounded-0"
6667
disabled={readOnly}
68+
onClick={openAddContentSidebar}
6769
>
6870
{intl.formatMessage(messages.newContentButton)}
6971
</Button>

0 commit comments

Comments
 (0)