Skip to content

Commit

Permalink
fix: types lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisChV committed Jul 10, 2024
1 parent 3588e53 commit a298644
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/library-authoring/EmptyStates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const NoComponents = () => {
return (
<Stack direction="horizontal" gap={3} className="mt-6 justify-content-center">
<FormattedMessage {...messages.noComponents} />
<Button iconBefore={Add} onClick={openAddContentSidebar}>
<Button iconBefore={Add} onClick={() => openAddContentSidebar()}>
<FormattedMessage {...messages.addComponent} />
</Button>
</Stack>
Expand Down
2 changes: 1 addition & 1 deletion src/library-authoring/LibraryAuthoringPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const LibraryAuthoringPage = () => {
<Button
iconBefore={Add}
variant="primary rounded-0"
onClick={openAddContentSidebar}
onClick={() => openAddContentSidebar()}
disabled={!libraryData.canEditLibrary}
>
{intl.formatMessage(messages.newContentButton)}
Expand Down

0 comments on commit a298644

Please sign in to comment.