From a00c1f710b99af6c217bece2c101c90b68b2ea1b Mon Sep 17 00:00:00 2001 From: "hyunwoo93.cha" Date: Thu, 16 Jan 2025 13:59:46 +0900 Subject: [PATCH] =?UTF-8?q?[SHOPTIME-2835=20TV=20=EC=95=B1=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20(QA)]=20[Minor]=20MY=20PAGE=20>=20MY=20ORD?= =?UTF-8?q?ERS=20>ORDERS/=20CANCELLED=20ORDERS=ED=83=AD=20>month=20?= =?UTF-8?q?=EA=B2=80=EC=83=89=20=EC=85=80=EB=A0=89=ED=8A=B8=EB=B0=95?= =?UTF-8?q?=EC=8A=A4=20>1=20month/12=20Month=20=EA=B0=80=20=EC=97=86?= =?UTF-8?q?=EB=8A=94=20=EB=AC=B8=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MyPageSub/MyOrders/MyOrders.jsx | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/MyOrders/MyOrders.jsx b/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/MyOrders/MyOrders.jsx index 51e16822..7ceca085 100644 --- a/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/MyOrders/MyOrders.jsx +++ b/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/MyOrders/MyOrders.jsx @@ -151,14 +151,36 @@ export default function MyOrders({ title, panelInfo, isOnTop }) { const cancelOrderInfoDataRef = usePrevious(cancelOrderInfoData); 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( (forceUpdate = false) => { 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 ( forceUpdate ||