Skip to content

Commit

Permalink
Site Editor: Fix browser console error in Library page
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Jun 21, 2023
1 parent 5f2d618 commit fa4de00
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/edit-site/src/components/add-new-pattern/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,11 @@ export default function AddNewPattern() {
title: 'Create a pattern',
},
] }
icon={
<SidebarButton
icon={ plus }
label={ __( 'Create a pattern' ) }
/>
}
label="Create a pattern."
icon={ plus }
toggleProps={ {
as: SidebarButton,
} }
label={ __( 'Create a pattern.' ) }
/>
{ showPatternModal && (
<CreatePatternModal
Expand Down

0 comments on commit fa4de00

Please sign in to comment.