[홈배너] 사용하지 않는 변수 제거
This commit is contained in:
@@ -6,12 +6,8 @@ import Spotlight from "@enact/spotlight";
|
||||
import { SpotlightContainerDecorator } from "@enact/spotlight/SpotlightContainerDecorator";
|
||||
import Spottable from "@enact/spotlight/Spottable";
|
||||
|
||||
import {
|
||||
getHomeMainContents,
|
||||
setDefaultFocus,
|
||||
} from "../../../actions/homeActions";
|
||||
import { setDefaultFocus } from "../../../actions/homeActions";
|
||||
import CustomImage from "../../../components/CustomImage/CustomImage";
|
||||
import useScrollReset from "../../../hooks/useScrollReset";
|
||||
import css from "./HomeBanner.module.less";
|
||||
import Random from "./RandomUnit";
|
||||
import Rolling from "./RollingUnit";
|
||||
@@ -36,7 +32,6 @@ export default function HomeBanner({
|
||||
const homeTopDisplayInfo = useSelector(
|
||||
(state) => state.home.homeTopDisplayInfo
|
||||
);
|
||||
const popupVisible = useSelector((state) => state.common.popup.popupVisible);
|
||||
|
||||
const bannerDataList = useSelector(
|
||||
(state) => state.home.bannerData?.bannerInfos
|
||||
@@ -53,6 +48,8 @@ export default function HomeBanner({
|
||||
}, [handleItemFocus]);
|
||||
|
||||
const defaultFocus = useMemo(() => {
|
||||
console.log("default Focus!!");
|
||||
|
||||
if (bannerDataList) {
|
||||
let targetIndex = 0;
|
||||
for (let i = 0; i < bannerDataList.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user