From fae4d70be4bef7b9fd0802abd893b61390054974 Mon Sep 17 00:00:00 2001 From: "younghoon100.park" Date: Wed, 14 Feb 2024 15:33:35 +0900 Subject: [PATCH] =?UTF-8?q?components]=20TBody.jsx,=20props=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Detail Notes : 1. props, cbScrollTo 추가 --- .../src/components/TBody/TBody.jsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/com.twin.app.shoptime/src/components/TBody/TBody.jsx b/com.twin.app.shoptime/src/components/TBody/TBody.jsx index 31668600..89ce115f 100644 --- a/com.twin.app.shoptime/src/components/TBody/TBody.jsx +++ b/com.twin.app.shoptime/src/components/TBody/TBody.jsx @@ -1,9 +1,12 @@ -import classNames from "classnames"; import React from "react"; + +import classNames from "classnames"; + import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator"; -import css from "./TBody.module.less"; + import { SpotlightIds } from "../../utils/SpotlightIds"; import TScroller from "../TScroller/TScroller"; +import css from "./TBody.module.less"; const Container = SpotlightContainerDecorator( { enterTo: "last-focused", preserveId: true }, @@ -11,10 +14,11 @@ const Container = SpotlightContainerDecorator( ); export default function TBody({ + cbScrollTo, children, className, - spotlightId = SpotlightIds.TBODY, scrollable = true, + spotlightId = SpotlightIds.TBODY, ...rest }) { return ( @@ -24,7 +28,9 @@ export default function TBody({ className={classNames(css.tBody, className)} > {scrollable ? ( - {children} + + {children} + ) : ( { children } )}