[category]category top버튼 스팟 이상건

- ShowContents에 컨테이너 추가.
This commit is contained in:
junghoon86.park
2024-02-26 15:56:39 +09:00
parent c762b012f9
commit 591d6a8116

View File

@@ -2,6 +2,7 @@ import React from "react";
import { useSelector } from "react-redux";
import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
import Spottable from "@enact/spotlight/Spottable";
import NoResultsCategoryShows from "../NoResultsCategory/NoResultsCategoryShows";
@@ -10,14 +11,19 @@ import ShowLists from "./ShowLists/ShowLists";
import ShowProductContents from "./ShowProductContents/ShowProductContents";
const SpottableVideoContainer = Spottable("div");
const Container = SpotlightContainerDecorator(
{
enterTo: "last-focused",
},
"div"
);
export default function ShowContents() {
const showContentDatas = useSelector((state) => state.main.subCategoryData);
const { categoryShowInfos, partnerInfos, topShowInfo } =
showContentDatas || {};
return (
<>
<Container>
{showContentDatas &&
topShowInfo &&
categoryShowInfos &&
@@ -38,6 +44,6 @@ export default function ShowContents() {
{categoryShowInfos && categoryShowInfos.length === 0 && (
<NoResultsCategoryShows />
)}
</>
</Container>
);
}