From 2305f608af06259c96af6da13820e063b11297ce Mon Sep 17 00:00:00 2001 From: hhjk00 Date: Wed, 8 Nov 2023 14:57:25 +0900 Subject: [PATCH] =?UTF-8?q?select=20option=20value=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../statistics/AbnormalSituationContainer.js | 19 +++++++++---------- src/containers/statistics/FlightContainer.js | 12 ++++++------ 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/src/containers/statistics/AbnormalSituationContainer.js b/src/containers/statistics/AbnormalSituationContainer.js index 4d7e842..b202c10 100644 --- a/src/containers/statistics/AbnormalSituationContainer.js +++ b/src/containers/statistics/AbnormalSituationContainer.js @@ -23,7 +23,7 @@ export default function AbnormalSituationContainer({ labelColor }) { const [searchType, setSearchType] = useState({ - abnormalType: 'offCourse', + abnormalType: '비행경로이탈', dateType: 'year', year: new Date().getFullYear(), month: new Date().getMonth() + 1, @@ -34,7 +34,7 @@ export default function AbnormalSituationContainer({ day: [] }); - const titleName = '비행 통계'; + const titleName = '비정상상황 통계'; useEffect(() => { const { year, month } = searchType; @@ -49,7 +49,8 @@ export default function AbnormalSituationContainer({ (type, val) => { setSearchType({ ...searchType, - [type]: type === 'dateType' || type === 'flightType' ? val : Number(val) + [type]: + type === 'dateType' || type === 'abnormalType' ? val : Number(val) }); }, [searchType] @@ -330,15 +331,13 @@ export default function AbnormalSituationContainer({ ) } > - - - + @@ -358,7 +357,7 @@ export default function AbnormalSituationContainer({ - 비행 시간 통계 + {searchType.abnormalType} 통계
@@ -464,7 +463,7 @@ export default function AbnormalSituationContainer({ - 비행시간 TOP5 + {searchType.abnormalType} TOP5
diff --git a/src/containers/statistics/FlightContainer.js b/src/containers/statistics/FlightContainer.js index 186a5ec..07a6899 100644 --- a/src/containers/statistics/FlightContainer.js +++ b/src/containers/statistics/FlightContainer.js @@ -23,7 +23,7 @@ export default function FlightContainer({ labelColor }) { const [searchType, setSearchType] = useState({ - flightType: 'time', + flightType: '비행시간', dateType: 'year', year: new Date().getFullYear(), month: new Date().getMonth() + 1, @@ -330,9 +330,9 @@ export default function FlightContainer({ ) } > - - - + + + @@ -352,7 +352,7 @@ export default function FlightContainer({ - 비행 시간 통계 + {searchType.flightType} 통계
@@ -458,7 +458,7 @@ export default function FlightContainer({ - 비행시간 TOP5 + {searchType.flightType} TOP5