From d4f2ed65a37dad8b08300c9b4bb5a185462ed4b0 Mon Sep 17 00:00:00 2001 From: Fran McDade Date: Tue, 29 Oct 2024 16:07:58 +1000 Subject: [PATCH] feat: remove unused titlecell component (#248) --- .../components/TitleCell/titleCell.styles.ts | 7 ------ .../Index/components/TitleCell/titleCell.tsx | 22 ------------------- 2 files changed, 29 deletions(-) delete mode 100644 src/components/Index/components/TitleCell/titleCell.styles.ts delete mode 100644 src/components/Index/components/TitleCell/titleCell.tsx diff --git a/src/components/Index/components/TitleCell/titleCell.styles.ts b/src/components/Index/components/TitleCell/titleCell.styles.ts deleted file mode 100644 index 34edd2f5..00000000 --- a/src/components/Index/components/TitleCell/titleCell.styles.ts +++ /dev/null @@ -1,7 +0,0 @@ -import styled from "@emotion/styled"; -import { textBodySmall400 } from "../../../../styles/common/mixins/fonts"; -import { Grid } from "../../../common/Grid/grid"; - -export const TitleCell = styled(Grid)` - ${textBodySmall400}; -`; diff --git a/src/components/Index/components/TitleCell/titleCell.tsx b/src/components/Index/components/TitleCell/titleCell.tsx deleted file mode 100644 index 429ec854..00000000 --- a/src/components/Index/components/TitleCell/titleCell.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import { Typography } from "@mui/material"; -import React, { ReactNode } from "react"; -import { TEXT_BODY_400 } from "../../../../theme/common/typography"; -import { Link, LinkProps } from "../../../Links/components/Link/link"; -import { TitleCell as Cell } from "./titleCell.styles"; - -export interface TitleCellProps extends Omit { - title: ReactNode; -} - -export const TitleCell = ({ title, ...props }: TitleCellProps): JSX.Element => { - return ( - - {typeof title === "string" ? ( - {title} - ) : ( - title - )} - - - ); -};