Skip to content

Commit b4eb246

Browse files
committed
fix: use onClick properly
1 parent 984432a commit b4eb246

File tree

1 file changed

+2
-2
lines changed
  • src/components/inspector-sub-header

1 file changed

+2
-2
lines changed

src/components/inspector-sub-header/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const InspectorSubHeader = props => {
2727
size="small"
2828
icon="trash"
2929
alt={ __( 'Delete', i18n ) }
30-
onTrash={ onTrash }
30+
onClick={ onTrash }
3131
/>
3232
) }
3333
{ showReset && (
@@ -36,7 +36,7 @@ const InspectorSubHeader = props => {
3636
size="small"
3737
icon="image-rotate"
3838
alt={ __( 'Reset', i18n ) }
39-
onReset={ onReset }
39+
onClick={ onReset }
4040
/>
4141
) }
4242
</div>

0 commit comments

Comments
 (0)