From 4f0469a04c0f94cecff944336583e987b556f135 Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Wed, 15 Nov 2023 19:55:19 -0600 Subject: [PATCH] CE-740 line colors --- src/qqq/components/widgets/tables/DataTable.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/qqq/components/widgets/tables/DataTable.tsx b/src/qqq/components/widgets/tables/DataTable.tsx index f7cfb72..bdf2691 100644 --- a/src/qqq/components/widgets/tables/DataTable.tsx +++ b/src/qqq/components/widgets/tables/DataTable.tsx @@ -31,6 +31,7 @@ import Tooltip from "@mui/material/Tooltip"; import parse from "html-react-parser"; import {useEffect, useMemo, useState} from "react"; import {useAsyncDebounce, useGlobalFilter, usePagination, useSortBy, useTable, useExpanded} from "react-table"; +import colors from "qqq/assets/theme/base/colors"; import MDInput from "qqq/components/legacy/MDInput"; import MDPagination from "qqq/components/legacy/MDPagination"; import MDTypography from "qqq/components/legacy/MDTypography"; @@ -284,7 +285,7 @@ function DataTable({ let boxStyle = {}; if(fixedStickyLastRow) { - boxStyle = isFooter ? {overflowY: "visible", borderTop: "0.0625rem solid #f0f2f5;"} : {height: fixedHeight ? `${fixedHeight}px` : "360px", overflowY: "auto"}; + boxStyle = isFooter ? {overflowY: "visible", borderTop: `0.0625rem solid ${colors.grayLines.main};`} : {height: fixedHeight ? `${fixedHeight}px` : "360px", overflowY: "auto"}; } const className = isFooter ? "hideScrollbars" : ""; @@ -317,13 +318,14 @@ function DataTable({ { prepareRow(row); return ( - 0 ? "#FAFAFA" : "initial")}} key={key} {...row.getRowProps()}> + 0 ? colors.grayLines.main : "initial")}} key={key} {...row.getRowProps()}> {row.cells.map((cell: any) => ( cell.column.type !== "hidden" && ( {