From e1fd8bef3df6d6bbb7ba2e64b7b6fa723744eb4f Mon Sep 17 00:00:00 2001
From: Marin Atanasov <8436925+tyxla@users.noreply.github.com>
Date: Mon, 20 Jan 2025 16:44:50 +0200
Subject: [PATCH] Components: Move CategoryPillNavigation docs with component
(#98601)
---
.../{blocks => components}/category-pill-navigation/README.md | 0
.../category-pill-navigation/docs/example.tsx | 4 +++-
client/devdocs/design/blocks.jsx | 2 --
client/devdocs/design/index.jsx | 2 ++
4 files changed, 5 insertions(+), 3 deletions(-)
rename client/{blocks => components}/category-pill-navigation/README.md (100%)
rename client/{blocks => components}/category-pill-navigation/docs/example.tsx (89%)
diff --git a/client/blocks/category-pill-navigation/README.md b/client/components/category-pill-navigation/README.md
similarity index 100%
rename from client/blocks/category-pill-navigation/README.md
rename to client/components/category-pill-navigation/README.md
diff --git a/client/blocks/category-pill-navigation/docs/example.tsx b/client/components/category-pill-navigation/docs/example.tsx
similarity index 89%
rename from client/blocks/category-pill-navigation/docs/example.tsx
rename to client/components/category-pill-navigation/docs/example.tsx
index f41bbd1cbc18aa..d82efdbee0cc9b 100644
--- a/client/blocks/category-pill-navigation/docs/example.tsx
+++ b/client/components/category-pill-navigation/docs/example.tsx
@@ -9,7 +9,7 @@ const categories = Array.from( { length: 15 }, ( _, i ) => ( {
link: '#',
} ) );
-export const CategoryPillNavigationExample: FunctionComponent = () => {
+const CategoryPillNavigationExample: FunctionComponent = () => {
return (
@@ -39,3 +39,5 @@ export const CategoryPillNavigationExample: FunctionComponent = () => {
);
};
+
+export default CategoryPillNavigationExample;
diff --git a/client/devdocs/design/blocks.jsx b/client/devdocs/design/blocks.jsx
index 1227dcb9e65fae..0800465b55cd7a 100644
--- a/client/devdocs/design/blocks.jsx
+++ b/client/devdocs/design/blocks.jsx
@@ -11,7 +11,6 @@ import AuthorCompactProfile from 'calypso/blocks/author-compact-profile/docs/exa
import AuthorSelector from 'calypso/blocks/author-selector/docs/example';
import CalendarButton from 'calypso/blocks/calendar-button/docs/example';
import CalendarPopover from 'calypso/blocks/calendar-popover/docs/example';
-import { CategoryPillNavigationExample } from 'calypso/blocks/category-pill-navigation/docs/example';
import ColorSchemePicker from 'calypso/blocks/color-scheme-picker/docs/example';
import CommentButtons from 'calypso/blocks/comment-button/docs/example';
import PostComment from 'calypso/blocks/comments/docs/post-comment-example';
@@ -173,7 +172,6 @@ export default class AppComponents extends Component {
-
);
diff --git a/client/devdocs/design/index.jsx b/client/devdocs/design/index.jsx
index 92184efb5f1f9f..8e5a33ce72363a 100644
--- a/client/devdocs/design/index.jsx
+++ b/client/devdocs/design/index.jsx
@@ -34,6 +34,7 @@ import Breadcrumb from 'calypso/components/breadcrumb/docs/example';
import BulkSelect from 'calypso/components/bulk-select/docs/example';
import ButtonGroups from 'calypso/components/button-group/docs/example';
import CardHeading from 'calypso/components/card-heading/docs/example';
+import CategoryPillNavigationExample from 'calypso/components/category-pill-navigation/docs/example';
import Chart from 'calypso/components/chart/docs/example';
import Checklist from 'calypso/components/checklist/docs/example';
import ClipboardButtonInput from 'calypso/components/clipboard-button-input/docs/example';
@@ -186,6 +187,7 @@ export default class DesignAssets extends Component {
+