Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rinkalpagdar committed Dec 17, 2024
1 parent d5b9a98 commit 92eab2d
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions packages/block-library/src/post-navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,23 +95,25 @@ export default function PostNavigationLinkEdit( {
return (
<>
<InspectorControls>
<ToolsPanel label={__('Settings')}>
<ToolsPanel label={ __( 'Settings' ) }>
<ToolsPanelItem
hasValue={() => !!showTitle}
label={__('Display the title as a link')}
onDeselect={() => setAttributes({ showTitle: false })}
hasValue={ () => !! showTitle }
label={ __( 'Display the title as a link' ) }
onDeselect={ () =>
setAttributes( { showTitle: false } )
}
>
<ToggleControl
__nextHasNoMarginBottom
label={__('Display the title as a link')}
help={__(
label={ __( 'Display the title as a link' ) }
help={ __(
'If you have entered a custom label, it will be prepended before the title.'
)}
checked={!!showTitle}
onChange={() =>
setAttributes({
showTitle: !showTitle,
})
) }
checked={ !! showTitle }
onChange={ () =>
setAttributes( {
showTitle: ! showTitle,
} )
}
/>
</ToolsPanelItem>
Expand All @@ -131,49 +133,47 @@ export default function PostNavigationLinkEdit( {
/>
) }
<ToolsPanelItem
hasValue={() => !!arrow}
label={__('Arrow')}
onDeselect={() => setAttributes({ arrow: 'none' })}
hasValue={ () => !! arrow }
label={ __( 'Arrow' ) }
onDeselect={ () => setAttributes( { arrow: 'none' } ) }
>
<ToggleGroupControl
__next40pxDefaultSize
__nextHasNoMarginBottom
label={__('Arrow')}
value={arrow}
onChange={(value) => {
setAttributes({ arrow: value });
}}
help={__(
label={ __( 'Arrow' ) }
value={ arrow }
onChange={ ( value ) => {
setAttributes( { arrow: value } );
} }
help={ __(
'A decorative arrow for the next and previous link.'
)}
) }
isBlock
>
<ToggleGroupControlOption
value="none"
label={_x(
label={ _x(
'None',
'Arrow option for Next/Previous link'
)}
) }
/>
<ToggleGroupControlOption
value="arrow"
label={_x(
label={ _x(
'Arrow',
'Arrow option for Next/Previous link'
)}
) }
/>
<ToggleGroupControlOption
value="chevron"
label={_x(
label={ _x(
'Chevron',
'Arrow option for Next/Previous link'
)}
) }
/>
</ToggleGroupControl>
</ToolsPanelItem>
</ToolsPanel>


</InspectorControls>
<InspectorControls group="advanced">
<SelectControl
Expand Down

0 comments on commit 92eab2d

Please sign in to comment.