[지라 이슈 없음] DetailPanel.jsx, js/ts import 처리 (compare)

This commit is contained in:
younghoon100.park
2024-09-30 17:28:18 +09:00
parent de83cad210
commit 850d5efab8

View File

@@ -4,53 +4,50 @@ import React, {
useMemo, useMemo,
useRef, useRef,
useState, useState,
} from 'react'; } from "react";
import { import { useDispatch, useSelector } from "react-redux";
useDispatch,
useSelector,
} from 'react-redux';
import Spotlight from '@enact/spotlight'; import Spotlight from "@enact/spotlight";
import { setContainerLastFocusedElement } from "@enact/spotlight/src/container";
import { import {
changeAppStatus, changeAppStatus,
changeLocalSettings, changeLocalSettings,
setHidePopup, setHidePopup,
} from '../../actions/commonActions'; } from "../../actions/commonActions";
import { clearCouponInfo } from '../../actions/couponActions'; import { clearCouponInfo } from "../../actions/couponActions";
import { setContainerLastFocusedElement } from "@enact/spotlight/src/container"; import { getDeviceAdditionInfo } from "../../actions/deviceActions";
import { getDeviceAdditionInfo } from '../../actions/deviceActions';
import { import {
clearThemeDetail, clearThemeDetail,
getThemeCurationDetailInfo, getThemeCurationDetailInfo,
getThemeHotelDetailInfo, getThemeHotelDetailInfo,
} from '../../actions/homeActions'; } from "../../actions/homeActions";
import { import {
getMainCategoryDetail, getMainCategoryDetail,
getMainYouMayLike, getMainYouMayLike,
} from '../../actions/mainActions'; } from "../../actions/mainActions";
import { popPanel } from '../../actions/panelActions'; import { popPanel } from "../../actions/panelActions";
import { finishVideoPreview } from '../../actions/playActions'; import { finishVideoPreview } from "../../actions/playActions";
import { import {
clearProductDetail, clearProductDetail,
getProductGroup, getProductGroup,
getProductImageLength, getProductImageLength,
getProductOptionId, getProductOptionId,
} from '../../actions/productActions'; } from "../../actions/productActions";
import MobileSendPopUp from '../../components/MobileSend/MobileSendPopUp'; import MobileSendPopUp from "../../components/MobileSend/MobileSendPopUp";
import TBody from '../../components/TBody/TBody'; import TBody from "../../components/TBody/TBody";
import THeader from '../../components/THeader/THeader'; import THeader from "../../components/THeader/THeader";
import TPanel from '../../components/TPanel/TPanel'; import TPanel from "../../components/TPanel/TPanel";
import * as Config from '../../utils/Config'; import * as Config from "../../utils/Config";
import { panel_names } from '../../utils/Config'; import { panel_names } from "../../utils/Config";
import { $L } from '../../utils/helperMethods'; import { $L } from "../../utils/helperMethods";
import css from './DetailPanel.module.less'; import css from "./DetailPanel.module.less";
import GroupProduct from './GroupProduct/GroupProduct'; import GroupProduct from "./GroupProduct/GroupProduct";
import SingleProduct from './SingleProduct/SingleProduct'; import SingleProduct from "./SingleProduct/SingleProduct";
import ThemeProduct from './ThemeProduct/ThemeProduct'; import ThemeProduct from "./ThemeProduct/ThemeProduct";
import UnableProduct from './UnableProduct/UnableProduct'; import UnableProduct from "./UnableProduct/UnableProduct";
import YouMayLike from './YouMayLike/YouMayLike'; import YouMayLike from "./YouMayLike/YouMayLike";
export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) { export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
const dispatch = useDispatch(); const dispatch = useDispatch();
@@ -378,7 +375,6 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
dispatch(clearProductDetail()); dispatch(clearProductDetail());
dispatch(clearThemeDetail()); dispatch(clearThemeDetail());
dispatch(clearCouponInfo()); dispatch(clearCouponInfo());
//[SHOPTIME-3445]
setContainerLastFocusedElement(null, ["indicator-GridListContainer"]); setContainerLastFocusedElement(null, ["indicator-GridListContainer"]);
}; };
}, [dispatch]); }, [dispatch]);