[251026] [251025] fix: SearchPanel 초기화-2

🕐 커밋 시간: 2025. 10. 26. 09:17:28

📊 변경 통계:
  • 총 파일: 1개
  • 추가: +12줄

📝 수정된 파일:
  ~ com.twin.app.shoptime/src/components/TabLayout/TabLayout.jsx

🔧 주요 변경 내용:
  • UI 컴포넌트 아키텍처 개선
This commit is contained in:
2025-10-26 09:17:29 +09:00
parent e52f54378b
commit 0b66319200

View File

@@ -23,6 +23,7 @@ import shoptimeFullIcon from "../../../assets/images/icons/ic-lnb-logo-shoptime@
import { gnbOpened } from "../../actions/commonActions";
import { checkEnterThroughGNB, resetHomeInfo } from "../../actions/homeActions";
import { resetPanels } from "../../actions/panelActions";
import { resetVoiceSearch } from "../../actions/searchActions";
import usePrevious from "../../hooks/usePrevious";
import useScrollTo from "../../hooks/useScrollTo";
import { panel_names } from "../../utils/Config";
@@ -511,6 +512,17 @@ export default function TabLayout({ topPanelName, onTabActivated, panelInfo }) {
return;
}
// SearchPanel
if (target && target[0] && target[0].name === panel_names.SEARCH_PANEL) {
deActivateTab();
spotToPanel();
dispatch(resetVoiceSearch());
dispatch(resetPanels(target));
dispatch(checkEnterThroughGNB(true));
dispatch(resetHomeInfo());
return;
}
//그 외 나머지
if (target) {
deActivateTab();