Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
313de04
Added required changes to types in order to enable strict mode
Dec 3, 2024
6ee271f
Added remaining required changes for strict mode
Dec 4, 2024
91f9abf
Added remaining required changes for strict mode
Dec 4, 2024
0350f13
Removed unintentional changes
Dec 4, 2024
c3178b3
Merge branch 'master' of github.com:dxc-technology/halstack-react int…
Dec 5, 2024
2c6fec9
Fixed problems with tests due to focus lock
Dec 5, 2024
05958a5
Restore Breadcrumbs item keys
GomezIvann Dec 13, 2024
7880bd3
Badge component updates
GomezIvann Dec 13, 2024
a905943
Added corrections from review
Mil4n0r Dec 13, 2024
f6e5b34
Merge branch 'Mil4n0r/strict-mode-true' of github.com:dxc-technology/…
Mil4n0r Dec 13, 2024
0972270
Added more corrections from review
Mil4n0r Dec 13, 2024
c710645
Maintained same structure for HalstackContext
Mil4n0r Dec 13, 2024
3e120af
Contextual Menu updates
GomezIvann Dec 13, 2024
332061b
Merge branch 'Mil4n0r/strict-mode-true' of https://github.com/dxc-tec…
GomezIvann Dec 13, 2024
87823c3
Improved getNavigationLinks implementation
Mil4n0r Dec 16, 2024
9d71f78
Merge branch 'Mil4n0r/strict-mode-true' of github.com:dxc-technology/…
Mil4n0r Dec 16, 2024
eb47268
Removed unneeded React imports
Mil4n0r Dec 16, 2024
5361bb2
Added fixes for PR review
Mil4n0r Dec 17, 2024
30bab73
Discussed updates
GomezIvann Dec 17, 2024
b6ff887
Small change
GomezIvann Dec 17, 2024
c1bf883
HalstackContext typing updates
GomezIvann Dec 17, 2024
b5f163d
Small updated
GomezIvann Dec 17, 2024
8392956
Optional chaining fixed
GomezIvann Dec 17, 2024
84f34e0
Refactorized some of the stories
Mil4n0r Dec 17, 2024
ff667be
Merge branch 'Mil4n0r/strict-mode-true' of github.com:dxc-technology/…
Mil4n0r Dec 17, 2024
3e8ec1c
Updating components
GomezIvann Dec 18, 2024
42e5fdb
Updated test to fix typing errors
GomezIvann Dec 18, 2024
b9d5031
Refactorized rest of the stories
Mil4n0r Dec 18, 2024
c25d85e
Merge branch 'Mil4n0r/strict-mode-true' of github.com:dxc-technology/…
Mil4n0r Dec 18, 2024
3818b58
Removing undesired optional chaining operators
GomezIvann Dec 18, 2024
40d194d
Removed 'React.' and importing functions directly instead
Mil4n0r Dec 18, 2024
126c02f
Merge branch 'Mil4n0r/strict-mode-true' of github.com:dxc-technology/…
Mil4n0r Dec 18, 2024
baaf87f
Changed story name
Mil4n0r Dec 18, 2024
2227183
Added additional fixes for typings after context updates
Mil4n0r Dec 19, 2024
06520b9
Fixing type errors in affected files
GomezIvann Dec 20, 2024
c36d9f6
Small fixes
GomezIvann Dec 20, 2024
40d3dd5
Fixed TypeScript problems in stories and tests
Mil4n0r Dec 23, 2024
26f9307
Fixed problem with interaction in DataGrid stories
Mil4n0r Dec 23, 2024
0773f46
Fixed problem with interaction in DataGrid stories
Mil4n0r Dec 23, 2024
e1e5fbe
Fixed problem with interaction in DataGrid stories
Mil4n0r Dec 23, 2024
162780a
Fixed problem with interaction in DataGrid stories
Mil4n0r Dec 23, 2024
9ece46e
Merge branch 'master' into Mil4n0r/strict-mode-true
Mil4n0r Dec 24, 2024
d266130
Changed var names in tests for better readability
Mil4n0r Dec 24, 2024
6e49d1a
Changed var names in tests for better readability
Mil4n0r Dec 24, 2024
7d3ea1b
Removed no-longer-needed nullish coallescing operators
Dec 30, 2024
3dd15f9
Removing Background Color Context
GomezIvann Jan 2, 2025
5547170
Code updates
GomezIvann Jan 2, 2025
ca255a5
Includes improvements from strict mode PR review
Jan 7, 2025
d8195ad
Merge branch 'Mil4n0r/strict-mode-true' of github.com:dxc-technology/…
Jan 7, 2025
527ccc3
Refactorized textarea code
Jan 7, 2025
82a6a9c
Small code updates
GomezIvann Jan 7, 2025
f8a0b96
Merge branch 'Mil4n0r/strict-mode-true' of https://github.com/dxc-tec…
GomezIvann Jan 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 7 additions & 4 deletions apps/website/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import StatusBadge from "@/common/StatusBadge";
import "../global-styles.css";

type NextPageWithLayout = NextPage & {
getLayout?: (page: ReactElement) => ReactNode;
getLayout?: (_page: ReactElement) => ReactNode;
};
type AppPropsWithLayout = AppProps & {
Component: NextPageWithLayout;
};
type ApplicationLayoutWrapperProps = {
condition: boolean;
wrapper: (children: React.ReactNode) => JSX.Element;
wrapper: (_children: ReactNode) => JSX.Element;
children: ReactNode;
};

Expand Down Expand Up @@ -52,9 +52,12 @@ const App = ({ Component, pageProps }: AppPropsWithLayout) => {
};

const matchPaths = (linkPath: string) => {
const pathToBeMatched = currentPath.split("#")[0].slice(0, -1);
const pathToBeMatched = currentPath?.split("#")[0]?.slice(0, -1);
const desiredPaths = [linkPath, `${linkPath}/specifications`, `${linkPath}/usage`];
return desiredPaths.includes(pathToBeMatched);
if (pathToBeMatched) {
return desiredPaths.includes(pathToBeMatched);
}
return false;
};

return (
Expand Down
5 changes: 3 additions & 2 deletions apps/website/screens/common/Figure.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import styled from "styled-components";
import { DxcFlex } from "@dxc-technology/halstack-react";
import { ReactNode } from "react";

type DocImageProps = {
children: React.ReactNode;
caption: string | React.ReactNode;
children: ReactNode;
caption: string | ReactNode;
};
const Figure = ({ caption, children }: DocImageProps) => {
return (
Expand Down
4 changes: 2 additions & 2 deletions apps/website/screens/common/HalstackMarkdownParser.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DxcBulletedList, DxcHeading, DxcLink } from "@dxc-technology/halstack-react";
import { ReactMarkdown } from "react-markdown/lib/react-markdown";
import Code from "./Code";
import React, { Children } from "react";
import { Children } from "react";

const HalstackMarkdownParser = ({ markdown }: { markdown: string }) => (
<ReactMarkdown
Expand All @@ -15,7 +15,7 @@ const HalstackMarkdownParser = ({ markdown }: { markdown: string }) => (
h3: ({ children }) => (
<DxcHeading
level={4}
text={Children.map(children, (child) => (child as string).replace(/[^\x00-\x7F]/g, "")).join("")}
text={Children?.map(children, (child) => (child as string).replace(/[^\x00-\x7F]/g, ""))?.join("") ?? ""}
/>
),
ul: ({ children }) => (
Expand Down
8 changes: 5 additions & 3 deletions apps/website/screens/common/MainContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ const MainContainer = styled.div`
`;

const pathVersion =
process.env.NEXT_PUBLIC_SITE_VERSION === "next" || process.env.NODE_ENV === "development"
? 0
: parseInt(process.env.NEXT_PUBLIC_SITE_VERSION?.split(".")[0], 10);
process.env.NEXT_PUBLIC_SITE_VERSION == null
? null
: process.env.NEXT_PUBLIC_SITE_VERSION === "next" || process.env.NODE_ENV === "development"
? 0
: parseInt(process.env.NEXT_PUBLIC_SITE_VERSION.split(".")[0]!, 10);

const MainContent = ({ children }: { children: ReactNode }) => {
const toast = useToast();
Expand Down
3 changes: 2 additions & 1 deletion apps/website/screens/common/PageHeading.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ReactNode } from "react";
import styled from "styled-components";

const PageHeading = ({ children }: { children: React.ReactNode }) => {
const PageHeading = ({ children }: { children: ReactNode }) => {
return <PageHeadingContainer>{children}</PageHeadingContainer>;
};

Expand Down
4 changes: 3 additions & 1 deletion apps/website/screens/common/QuickNavContainerLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { ReactNode } from "react";

type QuickNavContainerLayoutProps = {
children: React.ReactNode;
children: ReactNode;
};

const QuickNavContainerLayout = ({ children }: QuickNavContainerLayoutProps) => <>{children}</>;
Expand Down
3 changes: 2 additions & 1 deletion apps/website/screens/common/Section.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { DxcFlex } from "@dxc-technology/halstack-react";
import HeadingLink from "./HeadingLink";
import { ReactNode } from "react";

type LevelEnum = 1 | 2 | 3 | 4 | 5;

export type SectionType = {
title: string;
level?: LevelEnum;
subSections?: SectionType[];
content?: React.ReactNode;
content?: ReactNode;
navSubtitle?: string;
};

Expand Down
2 changes: 1 addition & 1 deletion apps/website/screens/common/StatusBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const getBadgeTitle = (status: StatusBadgeProps["status"]) => {

const StatusBadge = ({ hasTitle = false, status }: StatusBadgeProps) => (
<DxcBadge
label={status[0].toUpperCase() + status.slice(1)}
label={status[0]?.toUpperCase() + status.slice(1)}
color={getBadgeColor(status)}
title={hasTitle ? getBadgeTitle(status) : undefined}
size="small"
Expand Down
3 changes: 2 additions & 1 deletion apps/website/screens/common/TableCode.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { ReactNode } from "react";
import styled from "styled-components";

const TableCode = styled.code`
Expand All @@ -8,7 +9,7 @@ const TableCode = styled.code`
border-radius: 0.25rem;
`;

export const ExtendedTableCode = ({ children }: { children: React.ReactNode }) => (
export const ExtendedTableCode = ({ children }: { children: ReactNode }) => (
<ExtendedCodeContainer>
<StyledExtendedCode>{children}</StyledExtendedCode>
</ExtendedCodeContainer>
Expand Down
6 changes: 3 additions & 3 deletions apps/website/screens/common/example/Example.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import { useState } from "react";
import styled from "styled-components";
import { LiveProvider, LiveEditor, LiveError, LivePreview } from "react-live";
import theme from "./liveEditorTheme";
Expand Down Expand Up @@ -41,8 +41,8 @@ type ExamplePropTypes = {
actionsVisible?: boolean;
defaultIsVisible?: boolean;
example: {
scope?: Record<string, any>;
code?: string;
scope: Record<string, any>;
code: string;
};
};

Expand Down
14 changes: 5 additions & 9 deletions apps/website/screens/common/pagesList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export type LinksSectionDetails = {
};

type NavigationLinks = {
previousLink: LinkDetails | null;
nextLink: LinkDetails | null;
previousLink?: LinkDetails;
nextLink?: LinkDetails;
};

export const themeGeneratorLinks = ["/theme-generator/opinionated-theme/", "/theme-generator/advanced-theme/"];
Expand Down Expand Up @@ -69,14 +69,10 @@ export const getNavigationLinks = (currentPath: string): NavigationLinks => {
const links = LinksSections.flatMap((section) => section.links);
const currentLinkIndex = getCurrentLinkIndex(links, currentPath);
if (currentLinkIndex === -1) {
return { previousLink: null, nextLink: null };
return {};
}
const nextLinkIndex = currentLinkIndex + 1;
const nextLinkExists = nextLinkIndex < links.length;
const previousLinkIndex = currentLinkIndex - 1;
const previousLinkExists = previousLinkIndex >= 0;
return {
previousLink: previousLinkExists ? links[previousLinkIndex] : null,
nextLink: nextLinkExists ? links[nextLinkIndex] : null,
previousLink: currentLinkIndex + 1 < links.length ? links[currentLinkIndex + 1] : undefined,
nextLink: currentLinkIndex - 1 >= 0 ? links[currentLinkIndex - 1] : undefined,
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { DxcParagraph, DxcFlex } from "@dxc-technology/halstack-react";
import TabsPageHeading from "@/common/TabsPageLayout";
import PageHeading from "@/common/PageHeading";
import ComponentHeading from "@/common/ComponentHeading";
import { ReactNode } from "react";

const AccordionPageHeading = ({ children }: { children: React.ReactNode }) => {
const AccordionPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/accordion" },
{ label: "Usage", path: "/components/accordion/usage" },
Expand Down
3 changes: 2 additions & 1 deletion apps/website/screens/components/alert/AlertPageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { DxcParagraph, DxcFlex } from "@dxc-technology/halstack-react";
import PageHeading from "@/common/PageHeading";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
import { ReactNode } from "react";

const AlertPageHeading = ({ children }: { children: React.ReactNode }) => {
const AlertPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/alert" },
{ label: "Usage", path: "/components/alert/usage" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const sections = [
message (e.g. closing the modal alert).
</td>
<td>
<TableCode>false</TableCode>
<TableCode>true</TableCode>
</td>
</tr>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { DxcParagraph, DxcFlex } from "@dxc-technology/halstack-react";
import PageHeading from "@/common/PageHeading";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
import { ReactNode } from "react";

const ApplicationLayoutPageHeading = ({ children }: { children: React.ReactNode }) => {
const ApplicationLayoutPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/application-layout" },
{ label: "Usage", path: "/components/application-layout/usage" },
Expand Down
3 changes: 2 additions & 1 deletion apps/website/screens/components/badge/BadgePageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { DxcFlex, DxcParagraph } from "@dxc-technology/halstack-react";
import PageHeading from "@/common/PageHeading";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
import { ReactNode } from "react";

const BadgePageHeading = ({ children }: { children: React.ReactNode }) => {
const BadgePageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/badge" },
{ label: "Usage", path: "/components/badge/usage" },
Expand Down
3 changes: 2 additions & 1 deletion apps/website/screens/components/bleed/BleedPageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { DxcParagraph, DxcFlex } from "@dxc-technology/halstack-react";
import PageHeading from "@/common/PageHeading";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
import { ReactNode } from "react";

const BleedPageHeading = ({ children }: { children: React.ReactNode }) => {
const BleedPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/bleed" },
{ label: "Usage", path: "/components/bleed/usage" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import PageHeading from "@/common/PageHeading";
import { DxcFlex, DxcParagraph } from "@dxc-technology/halstack-react";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
import { ReactNode } from "react";

const BreadcrumbsPageHeading = ({ children }: { children: React.ReactNode }) => {
const BreadcrumbsPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/breadcrumbs" },
{ label: "Usage", path: "/components/breadcrumbs/usage" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import PageHeading from "@/common/PageHeading";
import { DxcFlex, DxcParagraph } from "@dxc-technology/halstack-react";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
import { ReactNode } from "react";

const BulletedListPageHeading = ({ children }: { children: React.ReactNode }) => {
const BulletedListPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/bulleted-list" },
{ label: "Usage", path: "/components/bulleted-list/usage" },
Expand Down
3 changes: 2 additions & 1 deletion apps/website/screens/components/button/ButtonPageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { DxcParagraph, DxcFlex } from "@dxc-technology/halstack-react";
import PageHeading from "@/common/PageHeading";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
import { ReactNode } from "react";

const ButtonPageHeading = ({ children }: { children: React.ReactNode }) => {
const ButtonPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/button" },
{ label: "Usage", path: "/components/button/usage" },
Expand Down
3 changes: 2 additions & 1 deletion apps/website/screens/components/card/CardPageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { DxcParagraph, DxcFlex } from "@dxc-technology/halstack-react";
import PageHeading from "@/common/PageHeading";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
import { ReactNode } from "react";

const CardPageHeading = ({ children }: { children: React.ReactNode }) => {
const CardPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/card" },
{ label: "Usage", path: "/components/card/usage" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { DxcParagraph, DxcFlex } from "@dxc-technology/halstack-react";
import PageHeading from "@/common/PageHeading";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
import { ReactNode } from "react";

const CheckboxPageHeading = ({ children }: { children: React.ReactNode }) => {
const CheckboxPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/checkbox" },
{ label: "Usage", path: "/components/checkbox/usage" },
Expand Down
3 changes: 2 additions & 1 deletion apps/website/screens/components/chip/ChipPageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { DxcParagraph, DxcFlex } from "@dxc-technology/halstack-react";
import PageHeading from "@/common/PageHeading";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
import { ReactNode } from "react";

const ChipPageHeading = ({ children }: { children: React.ReactNode }) => {
const ChipPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/chip" },
{ label: "Usage", path: "/components/chip/usage" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { DxcParagraph, DxcFlex } from "@dxc-technology/halstack-react";
import PageHeading from "@/common/PageHeading";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
import { ReactNode } from "react";

const ContainerPageHeading = ({ children }: { children: React.ReactNode }) => {
const ContainerPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/container" },
{ label: "Usage", path: "/components/container/usage" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { DxcParagraph, DxcFlex } from "@dxc-technology/halstack-react";
import PageHeading from "@/common/PageHeading";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
import { ReactNode } from "react";

const ContextualMenuPageHeading = ({ children }: { children: React.ReactNode }) => {
const ContextualMenuPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/contextual-menu" },
{ label: "Usage", path: "/components/contextual-menu/usage" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { DxcParagraph, DxcFlex, DxcAlert } from "@dxc-technology/halstack-react"
import PageHeading from "@/common/PageHeading";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
import { ReactNode } from "react";

const DataGridPageHeading = ({ children }: { children: React.ReactNode }) => {
const DataGridPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/data-grid" },
{ label: "Usage", path: "/components/data-grid/usage" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ const sections = [
</DxcTable>
),
},
,
{
title: "DxcDataGrid.ActionsCell",
content: (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { DxcParagraph, DxcFlex } from "@dxc-technology/halstack-react";
import PageHeading from "@/common/PageHeading";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
import { ReactNode } from "react";

const DateInputPageHeading = ({ children }: { children: React.ReactNode }) => {
const DateInputPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/date-input" },
{ label: "Usage", path: "/components/date-input/usage" },
Expand Down
3 changes: 2 additions & 1 deletion apps/website/screens/components/dialog/DialogPageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { DxcParagraph, DxcFlex } from "@dxc-technology/halstack-react";
import PageHeading from "@/common/PageHeading";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
import { ReactNode } from "react";

const DialogPageHeading = ({ children }: { children: React.ReactNode }) => {
const DialogPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/dialog" },
{ label: "Usage", path: "/components/dialog/usage" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { DxcParagraph, DxcFlex } from "@dxc-technology/halstack-react";
import PageHeading from "@/common/PageHeading";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
import { ReactNode } from "react";

const DividerPageHeading = ({ children }: { children: React.ReactNode }) => {
const DividerPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/divider" },
{ label: "Usage", path: "/components/divider/usage" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { DxcParagraph, DxcFlex } from "@dxc-technology/halstack-react";
import PageHeading from "@/common/PageHeading";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
import { ReactNode } from "react";

const DropdownPageHeading = ({ children }: { children: React.ReactNode }) => {
const DropdownPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/dropdown" },
{ label: "Usage", path: "/components/dropdown/usage" },
Expand Down
Loading
Loading