Skip to content

Commit

Permalink
Feedback changes updated
Browse files Browse the repository at this point in the history
  • Loading branch information
karthick-murugan committed Jan 13, 2025
1 parent 846b7cb commit e14c01d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/block-library/src/query-title/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,16 @@ export default function QueryTitleEdit( {
label={ __( 'Settings' ) }
resetAll={ () =>
setAttributes( {
showPrefix: false,
showPrefix: true,
} )
}
>
<ToolsPanelItem
hasValue={ () => showPrefix !== undefined }
hasValue={ () => showPrefix === false }
label={ __( 'Show archive type in title' ) }
onDeselect={ () =>
setAttributes( { showPrefix: false } )
setAttributes( { showPrefix: true } )
}
resetAllFilter="core/filter-reset-all-settings"
isShownByDefault
>
<ToggleControl
Expand Down Expand Up @@ -136,16 +135,17 @@ export default function QueryTitleEdit( {
label={ __( 'Settings' ) }
resetAll={ () =>
setAttributes( {
showSearchTerm: false,
showSearchTerm: true,
} )
}
>
<ToolsPanelItem
hasValue={ () => showSearchTerm !== undefined }
hasValue={ () => showSearchTerm === false }
label={ __( 'Show search term in title' ) }
onDeselect={ () =>
setAttributes( { showSearchTerm: false } )
setAttributes( { showSearchTerm: true } )
}
isShownByDefault
>
<ToggleControl
__nextHasNoMarginBottom
Expand Down

0 comments on commit e14c01d

Please sign in to comment.