From 6de1086360350f66ca1d86a87089dc202567ab15 Mon Sep 17 00:00:00 2001 From: Eric Musyoka Date: Wed, 8 May 2024 14:51:34 +0300 Subject: [PATCH] Remove SimplePageHeader component --- .../PageHeaders/SimplePageHeader/index.tsx | 22 ------------------- .../SimplePageHeader/tests/index.test.tsx | 14 ------------ .../src/components/PageHeaders/index.tsx | 1 - 3 files changed, 37 deletions(-) delete mode 100644 packages/react-utils/src/components/PageHeaders/SimplePageHeader/index.tsx delete mode 100644 packages/react-utils/src/components/PageHeaders/SimplePageHeader/tests/index.test.tsx diff --git a/packages/react-utils/src/components/PageHeaders/SimplePageHeader/index.tsx b/packages/react-utils/src/components/PageHeaders/SimplePageHeader/index.tsx deleted file mode 100644 index 7d8b9a43c..000000000 --- a/packages/react-utils/src/components/PageHeaders/SimplePageHeader/index.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import React from 'react'; -import { Typography } from 'antd'; - -export interface SimplePageHeaderProps { - title: string; -} - -const { Title } = Typography; - -const SimplePageHeader = (props: SimplePageHeaderProps) => { - const { title } = props; - - return ( -
- - {title} - -
- ); -}; - -export { SimplePageHeader }; diff --git a/packages/react-utils/src/components/PageHeaders/SimplePageHeader/tests/index.test.tsx b/packages/react-utils/src/components/PageHeaders/SimplePageHeader/tests/index.test.tsx deleted file mode 100644 index ecac255fe..000000000 --- a/packages/react-utils/src/components/PageHeaders/SimplePageHeader/tests/index.test.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react'; -import { SimplePageHeader } from '..'; -import { render, cleanup, screen } from '@testing-library/react'; - -afterAll(() => { - cleanup(); -}); - -it('Renders as expected', async () => { - const title = 'Test Page'; - render(); - - expect(screen.getByText(title)).toBeInTheDocument(); -}); diff --git a/packages/react-utils/src/components/PageHeaders/index.tsx b/packages/react-utils/src/components/PageHeaders/index.tsx index 46cd067ad..3f7ca5c16 100644 --- a/packages/react-utils/src/components/PageHeaders/index.tsx +++ b/packages/react-utils/src/components/PageHeaders/index.tsx @@ -1,2 +1 @@ -export * from './SimplePageHeader'; export * from './RichPageHeader';