Skip to content

Commit

Permalink
Feat: 리스트 뷰에 팀원 정보 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
오인혁 authored and 오인혁 committed Mar 2, 2024
1 parent 93a1b51 commit 333e8f9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 338 deletions.
11 changes: 9 additions & 2 deletions src/components/Rank/RankListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,20 @@ const columns = [
field: "reportNm",
headerName: "제출한 레포트 수",
type: "number",
width: 200,
width: 300,
},
{
field: "totalMins",
headerName: "총 시간",
headerName: "총 시간(분)",
type: "number",
width: 150,
},
{
field: "members",
headerName: "팀원",
type: "text",
width: 600,
},
];

export default function RankListView({ teams }) {
Expand All @@ -24,6 +30,7 @@ export default function RankListView({ teams }) {
groupNm: team.id,
reportNm: team.reports,
totalMins: team.totalMinutes,
members: team.members.join(", "),
};
});
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/Rank/ViewToggleButton.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Stack, ToggleButton, ToggleButtonGroup } from "@mui/material";
import { Stack, ToggleButton, ToggleButtonGroup } from "@mui/material";

import ViewListIcon from "@mui/icons-material/ViewList";
import ViewModuleIcon from "@mui/icons-material/ViewModule";
Expand Down
Loading

0 comments on commit 333e8f9

Please sign in to comment.