Skip to content

Commit

Permalink
Fix TS error in PluginDocumentSettingPanelAiExcerpt
Browse files Browse the repository at this point in the history
  • Loading branch information
manzoorwanijk committed Nov 21, 2024
1 parent 4818639 commit da132e0
Showing 1 changed file with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,18 @@ export const PluginDocumentSettingPanelAiExcerpt = () => {
return null;
}
return (
<PostTypeSupportCheck supportKeys="excerpt">
<PluginDocumentSettingPanel
className={ isBetaExtension( 'ai-content-lens' ) ? 'is-beta-extension inset-shadow' : '' }
name="ai-content-lens-plugin"
title={ __( 'Excerpt', 'jetpack' ) }
>
<AiPostExcerpt />
</PluginDocumentSettingPanel>
</PostTypeSupportCheck>
<PostTypeSupportCheck
supportKeys="excerpt"
// @ts-expect-error Types for PostTypeSupportCheck children are not correct. It's `Element` instead of `ReactElement`.
children={
<PluginDocumentSettingPanel
className={ isBetaExtension( 'ai-content-lens' ) ? 'is-beta-extension inset-shadow' : '' }
name="ai-content-lens-plugin"
title={ __( 'Excerpt', 'jetpack' ) }
>
<AiPostExcerpt />
</PluginDocumentSettingPanel>
}
/>
);
};

0 comments on commit da132e0

Please sign in to comment.