Skip to content

Commit

Permalink
Remove PostSlugCheck and PostSlug unused components (#67414)
Browse files Browse the repository at this point in the history
Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
  • Loading branch information
4 people authored Nov 29, 2024
1 parent aee29cb commit e19a6f0
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 197 deletions.
21 changes: 0 additions & 21 deletions packages/editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1312,27 +1312,6 @@ _Returns_

- `React.ReactNode`: The rendered component.

### PostSlug

Renders the PostSlug component. It provide a control for editing the post slug.

_Returns_

- `React.ReactNode`: The rendered component.

### PostSlugCheck

Wrapper component that renders its children only if the post type supports the slug.

_Parameters_

- _props_ `Object`: Props.
- _props.children_ `React.ReactNode`: Children to be rendered.

_Returns_

- `React.ReactNode`: The rendered component.

### PostSticky

Renders the PostSticky component. It provides a checkbox control for the sticky post feature.
Expand Down
2 changes: 0 additions & 2 deletions packages/editor/src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ export {
usePostScheduleLabel,
} from './post-schedule/label';
export { default as PostSchedulePanel } from './post-schedule/panel';
export { default as PostSlug } from './post-slug';
export { default as PostSlugCheck } from './post-slug/check';
export { default as PostSticky } from './post-sticky';
export { default as PostStickyCheck } from './post-sticky/check';
export { default as PostSwitchToDraftButton } from './post-switch-to-draft-button';
Expand Down
20 changes: 0 additions & 20 deletions packages/editor/src/components/post-slug/check.js

This file was deleted.

73 changes: 0 additions & 73 deletions packages/editor/src/components/post-slug/index.js

This file was deleted.

22 changes: 0 additions & 22 deletions packages/editor/src/components/post-slug/panel.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/editor/src/components/post-slug/style.scss

This file was deleted.

53 changes: 0 additions & 53 deletions packages/editor/src/components/post-slug/test/index.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/editor/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
@import "./components/post-publish-panel/style.scss";
@import "./components/post-saved-state/style.scss";
@import "./components/post-schedule/style.scss";
@import "./components/post-slug/style.scss";
@import "./components/post-status/style.scss";
@import "./components/post-sticky/style.scss";
@import "./components/post-sync-status/style.scss";
Expand Down

0 comments on commit e19a6f0

Please sign in to comment.