Skip to content

Commit

Permalink
fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
faisal-alvi committed Jul 22, 2024
1 parent 0542975 commit 2e8f1a0
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions assets/js/gutenberg-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,25 +176,27 @@ const RenderDistributedFrom = () => {
className="distributed-modal-popup"
overlayClassName="distributed-modal-overlay"
>
<p dangerouslySetInnerHTML={ {
__html: sprintf(
__( 'Unlinking from the %1$sOriginal Content%2$s will stop updating this post automatically.', 'distributor' ),
'<a href="' + dtGutenberg.postUrl + '">',
'</a>'
)
} } />
<Flex justify='flex-end'>
<p
dangerouslySetInnerHTML={ {
__html: sprintf(
__(
'Unlinking from the %1$sOriginal Content%2$s will stop updating this post automatically.',
'distributor'
),
'<a href="' + dtGutenberg.postUrl + '">',
'</a>'
),
} }
/>
<Flex justify="flex-end">
<Button
icon={ <Icon icon="editor-unlink" /> }
variant='secondary'
variant="secondary"
href={ dtGutenberg.unlinkNonceUrl }
>
{ __( 'Unlink', 'distributor' ) }
</Button>
<Button
variant='link'
onClick={ closeModal }
>
<Button variant="link" onClick={ closeModal }>
{ __( 'Cancel', 'distributor' ) }
</Button>
</Flex>
Expand Down

0 comments on commit 2e8f1a0

Please sign in to comment.