diff --git a/src/containers/statistics/AbnormalSituationContainer.js b/src/containers/statistics/AbnormalSituationContainer.js index 4d7e8425..b202c101 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 186a5ec3..07a6899c 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