dark mode page panel/dashboard

This commit is contained in:
Ehsan
2024-09-28 13:35:12 +03:30
parent 8438b71538
commit 9992bdfa62
11 changed files with 118 additions and 31 deletions
+5 -9
View File
@@ -10,7 +10,7 @@ import {
function CustomTable({ tableHead, zeroRadius, centerTable, children }) {
return (
<TableContainer
className="!shadow-none table-shadow-none !overflow-auto !border !border-solid !border-[#DBDBDB]"
className="!shadow-none dark:!border-[#35343D] table-shadow-none !overflow-auto !border !border-solid !border-[#DBDBDB]"
sx={{
"&.MuiTableContainer-root": {
borderRadius: zeroRadius && "0 !important",
@@ -19,18 +19,14 @@ function CustomTable({ tableHead, zeroRadius, centerTable, children }) {
>
<Table className="!rounded-0 !shadow-none !overflow-hidden">
<TableHead>
<TableRow className="!bg-[#EFEFEF]">
<TableRow className="!bg-[#EFEFEF] dark:!bg-[#343645]">
{tableHead.map((item, idx) => (
<TableCell
key={idx}
className={`
!text-[#616161] !text-[14px] !font-normal !py-[10px] !px-[18px]
${
centerTable.includes(idx)
? "!text-center"
: "!text-start"
}
`}
!text-[#616161] dark:!border-none dark:!text-[#D7D8ED] !text-[14px] !font-normal !py-[10px] !px-[18px]
${centerTable.includes(idx) ? "!text-center" : "!text-start"}
`}
>
{item}
</TableCell>