[SHOPTIME-2835 TV 앱테스트 (QA)] [Minor] MY PAGE > MY ORDERS >ORDERS/ CANCELLED ORDERS탭 >month 검색 셀렉트박스 >1 month/12 Month 가 없는 문제

This commit is contained in:
hyunwoo93.cha
2025-01-16 13:59:46 +09:00
parent 32ffb9579a
commit a00c1f710b

View File

@@ -151,14 +151,36 @@ export default function MyOrders({ title, panelInfo, isOnTop }) {
const cancelOrderInfoDataRef = usePrevious(cancelOrderInfoData); const cancelOrderInfoDataRef = usePrevious(cancelOrderInfoData);
const filterMethods = useMemo( const filterMethods = useMemo(
() => [$L("Last 3 Month"), $L("Last 6 Month")], () => [
$L("Last 1 Month"),
$L("Last 3 Month"),
$L("Last 6 Month"),
$L("Last 12 Month"),
],
[] []
); );
const reload = useCallback( const reload = useCallback(
(forceUpdate = false) => { (forceUpdate = false) => {
const cancelOrderYn = tabRef.current === 0 ? "N" : "Y"; const cancelOrderYn = tabRef.current === 0 ? "N" : "Y";
const srchMonth = dropDownTabRef.current === 0 ? 3 : 6;
let srchMonth;
switch (dropDownTabRef.current) {
case 0: // Last 1 Month
srchMonth = 1;
break;
case 1: // Last 3 Month
srchMonth = 3;
break;
case 2: // Last 6 Month
srchMonth = 6;
break;
case 3: // Last 12 Month
srchMonth = 12;
break;
default:
srchMonth = 3; // 기본값
}
if ( if (
forceUpdate || forceUpdate ||