From c77a433bcbcbbba2e1079a59ecf73702ba15070a Mon Sep 17 00:00:00 2001 From: Dmytro Kireiev Date: Thu, 2 Nov 2023 16:33:11 +0200 Subject: [PATCH] fix: add Tag to Docs, align colours [MDS-727] (#2465) * fix: add Pagination to Docs, align colours [MDS-724] * fix: add Pagination to Docs, align colours [MDS-724] * fix: add Table to Docs, align colours [MDS-725] * fix: add Tabs to Docs, align colours [MDS-726] * fix: add Tag to Docs, align colours [MDS-727] --- docs/app/components/server/tag/page.tsx | 34 ++++++++++++------------- workspaces/base/src/tag/Tag.tsx | 6 ++--- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/docs/app/components/server/tag/page.tsx b/docs/app/components/server/tag/page.tsx index 0606c03229..946da63543 100644 --- a/docs/app/components/server/tag/page.tsx +++ b/docs/app/components/server/tag/page.tsx @@ -1,24 +1,22 @@ -import { Default } from "@/app/components/server/tag/examples/Default"; -import { getExamples } from "@/app/utils/getExamples"; -import { MDX } from "@/components/MDX"; +import { Default } from '@/app/components/server/tag/examples/Default'; +import ExampleSection from '@/app/components/shared/ExampleSection'; +import QuickNav from '@/app/components/shared/QuickNav'; +import { getExamples } from '@/app/utils/getExamples'; +import { MDX } from '@/components/MDX'; -export default async function Home() { +export default async function Tag() { const { server } = await getExamples(); - + const examplesList = Object.keys(server.tag.examples); return ( -
-

Tag

- +
+

Tag

- -
-

Default

-
- -
-
{server.tag.examples.Default}
-
+ + } + code={server.tag.examples.Default} + />
- ) + ); } - diff --git a/workspaces/base/src/tag/Tag.tsx b/workspaces/base/src/tag/Tag.tsx index c8dc4f1c72..fb10a6babb 100644 --- a/workspaces/base/src/tag/Tag.tsx +++ b/workspaces/base/src/tag/Tag.tsx @@ -1,9 +1,9 @@ import React from 'react'; -import mergeClassnames from '../mergeClassnames/mergeClassnames'; +import type TagProps from './private/types/TagProps'; import getFontSize from './private/utils/getFontSize'; import getIconSize from './private/utils/getIconSize'; import getSize from './private/utils/getSize'; -import type TagProps from './private/types/TagProps'; +import mergeClassnames from '../mergeClassnames/mergeClassnames'; const Tag = ({ children, @@ -17,7 +17,7 @@ const Tag = ({ }: TagProps) => (