File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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} ;
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments