[ImagePanel] delete rest paramter
This commit is contained in:
@@ -7,6 +7,7 @@ import { Job } from "@enact/core/util";
|
||||
import Spotlight from "@enact/spotlight";
|
||||
import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
|
||||
|
||||
import { sendLogCuration, sendLogGNB } from "../../actions/logActions";
|
||||
import { updatePanel } from "../../actions/panelActions";
|
||||
import CustomImage from "../../components/CustomImage/CustomImage";
|
||||
import TPanel from "../../components/TPanel/TPanel";
|
||||
@@ -14,7 +15,6 @@ import { LOG_TP_NO, panel_names } from "../../utils/Config";
|
||||
import ImageOverlayContents from "./ImageOverlayContents/ImageOverlayContents";
|
||||
import css from "./ImagePanel.module.less";
|
||||
import ImageSideContents from "./ImageSideContents/ImageSideContents";
|
||||
import { sendLogCuration, sendLogGNB } from "../../actions/logActions";
|
||||
|
||||
const Container = SpotlightContainerDecorator(
|
||||
{ enterTo: "last-focused" },
|
||||
@@ -247,12 +247,9 @@ export default function ImagePanel({ panelInfo, spotlightId, ...rest }) {
|
||||
[sideContentsVisible]
|
||||
);
|
||||
|
||||
const handleSeletedTab = useCallback(
|
||||
(nowMenu) => {
|
||||
dispatch(sendLogGNB(nowMenu));
|
||||
},
|
||||
[]
|
||||
);
|
||||
const handleSeletedTab = useCallback((nowMenu) => {
|
||||
dispatch(sendLogGNB(nowMenu));
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<TPanel
|
||||
@@ -260,7 +257,6 @@ export default function ImagePanel({ panelInfo, spotlightId, ...rest }) {
|
||||
isTabActivated={false}
|
||||
spotlightId={spotlightId}
|
||||
spotlightDisabled={spotlightDisabled}
|
||||
{...rest}
|
||||
>
|
||||
{selectedRoomThemeInfo &&
|
||||
selectedRoomThemeInfosLength &&
|
||||
|
||||
Reference in New Issue
Block a user