Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions apps/website/pages/components/data-grid/code.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import Head from "next/head";
import type { ReactElement } from "react";
import DataGridCodePage from "screens/components/data-grid/code/DataGridCodePage";
import DataGridPageLayout from "screens/components/data-grid/DataGridPageLayout";

const Code = () => {
return (
<>
<Head>
<title>Data grid — Halstack Design System</title>
</Head>
<DataGridCodePage />
</>
);
};

Code.getLayout = (page: ReactElement) => <DataGridPageLayout>{page}</DataGridPageLayout>;
export default Code;
16 changes: 6 additions & 10 deletions apps/website/pages/components/data-grid/index.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
import Head from "next/head";
import type { ReactElement } from "react";
import DataGridCodePage from "screens/components/data-grid/code/DataGridCodePage";
import DataGridPageLayout from "screens/components/data-grid/DataGridPageLayout";
import DataGridOverviewPage from "screens/components/data-grid/overview/DataGridOverviewPage";


const Usage = () => {
const Index = () => {
return (
<>
<Head>
<title>Data Grid — Halstack Design System</title>
<title>Data grid — Halstack Design System</title>
</Head>
<DataGridCodePage />
<DataGridOverviewPage />
</>
);
};

Usage.getLayout = function getLayout(page: ReactElement) {
return <DataGridPageLayout>{page}</DataGridPageLayout>;
};

export default Usage;
Index.getLayout = (page: ReactElement) => <DataGridPageLayout>{page}</DataGridPageLayout>;
export default Index;
21 changes: 0 additions & 21 deletions apps/website/pages/components/data-grid/specifications.tsx

This file was deleted.

21 changes: 0 additions & 21 deletions apps/website/pages/components/data-grid/usage.tsx

This file was deleted.

13 changes: 5 additions & 8 deletions apps/website/screens/components/data-grid/DataGridPageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import { ReactNode } from "react";

const DataGridPageHeading = ({ children }: { children: ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/data-grid" },
{ label: "Usage", path: "/components/data-grid/usage" },
{ label: "Specifications", path: "/components/data-grid/specifications" },
{ label: "Overview", path: "/components/data-grid" },
{ label: "Code", path: "/components/data-grid/code" },
];

return (
Expand All @@ -23,12 +22,10 @@ const DataGridPageHeading = ({ children }: { children: ReactNode }) => {
closable={false}
/>
<DxcParagraph>
A data grid is a component designed to display large volumes in a structured and organized manner. It
structures data into rows and columns, making it easy for users to visualize, analyze, and interact with the
information. The data grid also improves user experience by providing features like sorting, filtering, and
editing.
The datagrid component is used to display and manage large sets of data in a tabular format, allowing users
to sort, filter, and interact with the data efficiently.
</DxcParagraph>
<TabsPageHeading tabs={tabs}></TabsPageHeading>
<TabsPageHeading tabs={tabs} />
</DxcFlex>
</PageHeading>
{children}
Expand Down
Loading