|
|
@@ -1,5 +1,5 @@ |
|
|
|
import { projects } from "@/app/api/staff"; |
|
|
|
import { Box, Card, CardContent, Grid, Stack, SxProps } from "@mui/material"; |
|
|
|
import { Box, Card, CardContent, Divider, Grid, Stack, SxProps, Typography } from "@mui/material"; |
|
|
|
import StyledDataGrid from "../StyledDataGrid"; |
|
|
|
import { useMemo } from "react"; |
|
|
|
import { useTranslation } from "react-i18next"; |
|
|
@@ -43,7 +43,12 @@ const ProjectHistory: React.FC<Props> = async ({ InvolvedProject }) => { |
|
|
|
<CardContent component={Stack} spacing={4}> |
|
|
|
<Box> |
|
|
|
<Grid container spacing={2} columns={{ xs: 6, sm: 12 }}> |
|
|
|
|
|
|
|
<Grid item xs={6}> |
|
|
|
<Typography variant="h5"> |
|
|
|
{t("On-going Projects")}: |
|
|
|
</Typography> |
|
|
|
<Divider sx={{ paddingBlockStart: 2 }}/> |
|
|
|
<StyledDataGrid |
|
|
|
sx={_sx} |
|
|
|
rows={InvolvedProject?.filter(item => item.status === "On-going") ?? []} |
|
|
@@ -51,6 +56,10 @@ const ProjectHistory: React.FC<Props> = async ({ InvolvedProject }) => { |
|
|
|
/> |
|
|
|
</Grid> |
|
|
|
<Grid item xs={6}> |
|
|
|
<Typography variant="h5"> |
|
|
|
{t("Completed Projects")}: |
|
|
|
</Typography> |
|
|
|
<Divider sx={{ paddingBlockStart: 2 }}/> |
|
|
|
<StyledDataGrid |
|
|
|
sx={_sx} |
|
|
|
rows={InvolvedProject?.filter(item => item.status === "Completed") ?? []} |
|
|
|