diff --git a/epictrack-web/src/components/myWorkplans/Card/CardBody.tsx b/epictrack-web/src/components/myWorkplans/Card/CardBody.tsx index a0a59d7c7..6850ef0b5 100644 --- a/epictrack-web/src/components/myWorkplans/Card/CardBody.tsx +++ b/epictrack-web/src/components/myWorkplans/Card/CardBody.tsx @@ -1,4 +1,4 @@ -import { Grid } from "@mui/material"; +import { Grid, Stack } from "@mui/material"; import { Palette } from "../../../styles/theme"; import { ETCaption1, ETCaption2, ETHeading4, ETParagraph } from "../../shared"; import Icons from "../../icons"; @@ -60,7 +60,7 @@ const CardBody = ({ workplan }: CardProps) => { {workplan.work_type.name} - + @@ -68,47 +68,57 @@ const CardBody = ({ workplan }: CardProps) => { - - - - - + - {workplan?.phase_info?.work_phase.name} - + + + {workplan?.phase_info?.work_phase.name} + + - - 0 - ? Palette.neutral.main - : Palette.error.main - } - /> - - - 0 - ? Palette.neutral.main - : Palette.error.main - } - sx={{ - overflow: "hidden", - textOverflow: "ellipsis", - whiteSpace: "nowrap", - }} + + - {daysLeft()} - + 0 + ? Palette.neutral.main + : Palette.error.main + } + /> + 0 + ? Palette.neutral.main + : Palette.error.main + } + sx={{ + overflow: "hidden", + textOverflow: "ellipsis", + whiteSpace: "nowrap", + }} + > + {daysLeft()} + +