[ImagePanel] delete rest paramter

This commit is contained in:
younghoon100.park
2024-07-22 11:18:21 +09:00
parent e14f7027c3
commit 5a4052e49f

View File

@@ -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 &&