File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,25 @@ interface OutAcceptProp {
1414 active ?: boolean ;
1515}
1616
17+ /**
18+ * 외출자 목록 컴포넌트
19+ * @param {string } name - 학생 이름
20+ * @param {string } date - 외출 날짜
21+ * @param {string } content - 외출 사유
22+ * @param {function } onClick - 클릭 이벤트 핸들러
23+ * @param {string } type - 외출자 목록 타입
24+ * @param {boolean } active - 선택 여부
25+ * @returns {JSX.Element } 외출자 목록 컴포넌트
26+ * @example
27+ * <OutAcceptList
28+ * name="홍길동"
29+ * date="2023-10-01"
30+ * content="병원"
31+ * onClick={() => console.log('clicked')}
32+ * type="applicationaccept"
33+ * active={true}
34+ * />
35+ */
1736const OutAcceptList = ( {
1837 name,
1938 date,
@@ -25,7 +44,11 @@ const OutAcceptList = ({
2544 return (
2645 < S . OutAcceptWrap type = { type } draggable isActive = { active ! } onClick = { onClick } >
2746 < S . OutAcceptTitle > { name } </ S . OutAcceptTitle >
28- < div > 외출</ div >
47+ < p >
48+ { type === 'early-returnList' || type === 'early-returnaccept'
49+ ? '조기귀가'
50+ : '외출' }
51+ </ p >
2952 < S . OutAcceptDate > { date } </ S . OutAcceptDate >
3053 < S . OutAcceptContent > { content } </ S . OutAcceptContent >
3154 </ S . OutAcceptWrap >
You can’t perform that action at this time.
0 commit comments