-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #304 from CheckMate-sookmyung/feat/stat
#247 feat: 전체 통계 표 차트 구현
- Loading branch information
Showing
8 changed files
with
82 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,42 @@ | ||
import * as S from './Table.style'; | ||
|
||
return ( | ||
<S.TableContainer> | ||
<S.Table> | ||
<thead> | ||
<tr> | ||
<S.TableHeader>순위</S.TableHeader> | ||
<S.TableHeader>이름</S.TableHeader> | ||
<S.TableHeader>학과</S.TableHeader> | ||
<S.TableHeader>학번</S.TableHeader> | ||
<S.TableHeader>학년</S.TableHeader> | ||
<S.TableHeader>휴대폰번호</S.TableHeader> | ||
<S.TableHeader>이메일 주소</S.TableHeader> | ||
<S.TableHeader>참석행사</S.TableHeader> | ||
<S.TableHeader>참석률</S.TableHeader> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<S.TableData>1</S.TableData> | ||
<S.TableData>강동훈</S.TableData> | ||
<S.TableData>야놀자</S.TableData> | ||
<S.TableData>0</S.TableData> | ||
<S.TableData>-</S.TableData> | ||
<S.TableData>010-1234-5678</S.TableData> | ||
<S.TableData>checkmate이메일</S.TableData> | ||
<S.TableData>11</S.TableData> | ||
<S.TableData>90%</S.TableData> | ||
</tr> | ||
</tbody> | ||
</S.Table> | ||
</S.TableContainer> | ||
); | ||
const TotalStatisticTable = ({ studentData }) => { | ||
return ( | ||
<S.TableContainer> | ||
<S.Table> | ||
<thead> | ||
<tr> | ||
<S.TableHeader>순위</S.TableHeader> | ||
<S.TableHeader>이름</S.TableHeader> | ||
<S.TableHeader>학과</S.TableHeader> | ||
<S.TableHeader>학번</S.TableHeader> | ||
<S.TableHeader>학년</S.TableHeader> | ||
<S.TableHeader>휴대폰번호</S.TableHeader> | ||
<S.TableHeader>이메일 주소</S.TableHeader> | ||
<S.TableHeader>참석행사</S.TableHeader> | ||
<S.TableHeader>참석률</S.TableHeader> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{studentData.map((student, index) => ( | ||
<tr key={student.studentNumber}> | ||
<S.TableData>{index + 1}</S.TableData> | ||
<S.TableData>{student.studentName}</S.TableData> | ||
<S.TableData>{student.studentMajor}</S.TableData> | ||
<S.TableData>{student.studentNumber}</S.TableData> | ||
<S.TableData>{student.grade || '-'}</S.TableData> | ||
<S.TableData>{student.phoneNumber || '-'}</S.TableData> | ||
<S.TableData>{student.studentEmail}</S.TableData> | ||
<S.TableData> | ||
<S.AttendedCount>{student.attendanceCount}</S.AttendedCount> | ||
</S.TableData> | ||
<S.TableData>{student.attendanceRate}%</S.TableData> | ||
</tr> | ||
))} | ||
</tbody> | ||
</S.Table> | ||
</S.TableContainer> | ||
); | ||
}; | ||
|
||
export default AttendeeTable; | ||
export default TotalStatisticTable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export { default as AttendeeTable } from './AttendeeTable'; | ||
|
||
export { default as TotalStatisticsPage } from './AttendeeTable'; | ||
export { default as TotalStatisticsTable } from './TotalStatisticsTable'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters