[category]category top버튼 스팟 이상건
- ShowContents에 컨테이너 추가.
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user