diff --git a/egovframe-template-simple-react-contribution/src/pages/admin/boards/List.jsx b/egovframe-template-simple-react-contribution/src/pages/admin/boards/List.jsx
index 2a1381b..27d39a3 100644
--- a/egovframe-template-simple-react-contribution/src/pages/admin/boards/List.jsx
+++ b/egovframe-template-simple-react-contribution/src/pages/admin/boards/List.jsx
@@ -53,6 +53,8 @@ function EgovAdminBoardList(props) {
// 리스트 항목 구성
resp.result.boardList.forEach(function (item, index) {
if (index === 0) mutListTag = []; // 목록 초기화
+ const finalModifiedDate = item.lastChgDt ? item.lastChgDt : item.frstCrtDt;
+ const formattedDate = finalModifiedDate ? format(finalModifiedDate, "yyyy-MM-dd HH:mm") : "";
mutListTag.push(
@@ -60,8 +62,8 @@ function EgovAdminBoardList(props) {
{item.bbsId}
{item.bbsTitle}
{item.frstCrtId}
-
{item.frstCrtDt ? format(item.frstCrtDt, "yyyy-MM-dd HH:mm") : ""}
-
{item.lastChgDt ? format(item.lastChgDt, "yyyy-MM-dd HH:mm") : ""}
+
{formattedDate}
+
{item.useYn}
);
@@ -79,7 +81,6 @@ function EgovAdminBoardList(props) {
useEffect(() => {
retrieveList(searchCondition);
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
function editBoard(item){
@@ -118,44 +119,6 @@ function EgovAdminBoardList(props) {
게시판 관리
-
- {/* */}
- {/**/}
- {/* */}
-
{/* */}
@@ -163,8 +126,8 @@ function EgovAdminBoardList(props) {
아이디
제목
작성자
- 작성일
- 수정일
+ 최종수정일
+ 사용여부
@@ -174,11 +137,6 @@ function EgovAdminBoardList(props) {
{/* */}
- {/* */}
- {/* {
- retrieveList({ ...searchCondition, pageIndex: passedPage, searchCnd: cndRef.current.value, searchWrd: wrdRef.current.value })
- }} />*/}
- {/* */}
{/* */}