Skip to content

Commit

Permalink
Render warning component after detail settings
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiddot committed May 17, 2023
1 parent 510bbcf commit 1fed655
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export default function DetailsPanel( { attributes, setAttributes, videoBelongTo

return (
<PanelBody title={ __( 'Details', 'jetpack-videopress-pkg' ) }>
{ ! videoBelongToSite && videoNotOwnedMessage }
<TextControl
value={ title || '' }
onChange={ value => setAttributes( { title: value } ) }
Expand All @@ -63,6 +62,7 @@ export default function DetailsPanel( { attributes, setAttributes, videoBelongTo
label={ __( 'Description', 'jetpack-videopress-pkg' ) }
disabled={ ! videoBelongToSite }
/>
{ ! videoBelongToSite && videoNotOwnedMessage }
</PanelBody>
);
}

0 comments on commit 1fed655

Please sign in to comment.