Skip to content

Commit

Permalink
Documentation: PostSyncStatus editor component (WordPress#62382)
Browse files Browse the repository at this point in the history
* Add JSDoc block for PostSyncStatus editor component

* Auto-generate editor docs for PostSyncStatus component
  • Loading branch information
colorful-tones authored and patil-vipul committed Jun 17, 2024
1 parent aa48ac7 commit ac8f7e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,11 @@ Undocumented declaration.

### PostSyncStatus

Undocumented declaration.
Renders the sync status of a post.

_Returns_

- `JSX.Element|null`: The rendered sync status component.

### PostTaxonomies

Expand Down
5 changes: 5 additions & 0 deletions packages/editor/src/components/post-sync-status/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ import { __, _x } from '@wordpress/i18n';
import PostPanelRow from '../post-panel-row';
import { store as editorStore } from '../../store';

/**
* Renders the sync status of a post.
*
* @return {JSX.Element|null} The rendered sync status component.
*/
export default function PostSyncStatus() {
const { syncStatus, postType } = useSelect( ( select ) => {
const { getEditedPostAttribute } = select( editorStore );
Expand Down

0 comments on commit ac8f7e8

Please sign in to comment.