diff --git a/src/Table/Table.types.ts b/src/Table/Table.types.ts index 81d98f51e..49ed794f1 100644 --- a/src/Table/Table.types.ts +++ b/src/Table/Table.types.ts @@ -1,10 +1,10 @@ import type { Key } from "react"; import PropTypes from "prop-types"; -export type RowType = unknown; +export type RowType = any; export interface CellInfoType { - cellData: unknown; + cellData: any; column: ColumnType; row: RowType; } diff --git a/src/Table/TableBody.tsx b/src/Table/TableBody.tsx index 8be0c1242..caf86afb7 100644 --- a/src/Table/TableBody.tsx +++ b/src/Table/TableBody.tsx @@ -3,7 +3,7 @@ import PropTypes from "prop-types"; import styled from "styled-components"; import { Box } from "../Box"; import { DefaultNDSThemeType } from "../theme.type"; -import { rowsPropType, columnsPropType, rowPropType } from "./Table.types"; +import { columnsPropType, rowPropType } from "./Table.types"; import TableCell from "./TableCell"; const StyledMessageContainer = styled(Box)(({ theme }) => ({ diff --git a/src/Table/TableCell.tsx b/src/Table/TableCell.tsx index 38627655a..0b029e668 100644 --- a/src/Table/TableCell.tsx +++ b/src/Table/TableCell.tsx @@ -1,6 +1,5 @@ import React from "react"; import styled, { CSSObject } from "styled-components"; -import { columnPropType, rowPropType } from "./Table.types"; import { DefaultNDSThemeType } from "../theme.type"; type StyledTableCellProps = {