Skip to content

Commit

Permalink
added points to table
Browse files Browse the repository at this point in the history
  • Loading branch information
eulaliee committed Oct 15, 2024
1 parent c2e7813 commit 812df87
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions src/pages/AutID/AutHub/AutHubContributionsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ const StyledTableCell = styled(TableCell)(({ theme }) => ({
color: theme.palette.common.white,
borderColor: "#576176",
padding: theme.spacing(3),
"&:nth-of-type(2)": {
padding: `${theme.spacing(3)} 0 ${theme.spacing(3)} ${theme.spacing(3)}`
"&:nth-of-type(4)": {
padding: `${theme.spacing(3)} ${theme.spacing(1)} ${theme.spacing(3)} ${theme.spacing(3)}`
},
"&:nth-of-type(3)": {
padding: `${theme.spacing(3)} ${theme.spacing(3)} ${theme.spacing(3)} 0`
"&:nth-of-type(5)": {
padding: `${theme.spacing(3)} ${theme.spacing(3)} ${theme.spacing(3)} ${theme.spacing(1)}`
}
}
}));
Expand Down Expand Up @@ -106,8 +106,11 @@ const TableListItem = memo((data: any) => {
width: "10%"
},
"&:nth-of-type(5)": {
width: "20%"
width: "10%"
},
"&:nth-of-type(6)": {
width: "10%"
}
}
}}
>
Expand All @@ -134,6 +137,11 @@ const TableListItem = memo((data: any) => {
</Typography>
</Box>
</StyledTableCell>
<StyledTableCell align="left">
<Typography variant="body" fontWeight="normal" color="white">
{`${row?.properties?.points || 0} ${row?.properties?.points === 1 ? "pt" : "pts"}`}
</Typography>
</StyledTableCell>
<StyledTableCell align="left">
<Box
sx={{
Expand Down Expand Up @@ -289,6 +297,15 @@ export const AutHubTasksTable = ({ header }) => {
Type
</Typography>
</StyledTableCell>
<StyledTableCell align="left">
<Typography
variant="body"
fontWeight="normal"
color="offWhite.dark"
>
Points
</Typography>
</StyledTableCell>
<StyledTableCell align="left">
<Typography
variant="body"
Expand Down

0 comments on commit 812df87

Please sign in to comment.