Skip to content

Commit

Permalink
Use summaries in pre-publish panel.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebulanStanphill committed Sep 9, 2020
1 parent f14881a commit 2a4456f
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions packages/editor/src/components/post-publish-panel/prepublish.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { get } from 'lodash';
import { __ } from '@wordpress/i18n';
import { PanelBody } from '@wordpress/components';
import { withSelect } from '@wordpress/data';
import { createInterpolateElement } from '@wordpress/element';

/**
* Internal dependencies
Expand Down Expand Up @@ -54,29 +55,25 @@ function PostPublishPanelPrepublish( {
<>
<PanelBody
initialOpen={ false }
title={ [
__( 'Visibility:' ),
<span
className="editor-post-publish-panel__link"
key="label"
>
<PostVisibilityLabel />
</span>,
] }
title={ __( 'Visibility' ) }
summary={ createInterpolateElement(
__( 'Set to <PostVisibilityLabel />.' ),
{
PostVisibilityLabel: <PostVisibilityLabel />,
}
) }
>
<PostVisibility />
</PanelBody>
<PanelBody
initialOpen={ false }
title={ [
__( 'Publish:' ),
<span
className="editor-post-publish-panel__link"
key="label"
>
<PostScheduleLabel />
</span>,
] }
title={ __( 'Publish date' ) }
summary={ createInterpolateElement(
__( 'Set to <PostScheduleLabel />.' ),
{
PostScheduleLabel: <PostScheduleLabel />,
}
) }
>
<PostSchedule />
</PanelBody>
Expand Down

0 comments on commit 2a4456f

Please sign in to comment.