[DetailPanel] Theader Marqee 추가 및 marqeeDisabled props 추가

This commit is contained in:
고동영
2024-05-16 10:22:43 +09:00
parent 21e1a7a123
commit f013416020
3 changed files with 11 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ import React, { useCallback } from "react";
import classNames from "classnames";
import { Marquee, MarqueeController } from "@enact/sandstone/Marquee";
import SpotlightContainerDecorator, {
spotlightDefaultClass,
} from "@enact/spotlight/SpotlightContainerDecorator";
@@ -20,6 +21,7 @@ export default function THeader({
className,
onBackButton,
onSpotlightUp,
marqueeDisabled = true,
onClick,
children,
}) {
@@ -48,7 +50,13 @@ export default function THeader({
onSpotlightUp={_onSpotlightUp}
/>
)}
<div className={css.title}>{title}</div>
<Marquee
marqueeOn="render"
className={css.title}
marqueeDisabled={marqueeDisabled}
>
{title}
</Marquee>
{children}
</Container>
);

View File

@@ -24,7 +24,7 @@
background-image: url("../../../assets/images/btn/btn-60-bk-back-nor@3x.png");
border: none;
margin-right: -49px;
position: relative;
position: fixed;
&:focus {
background-image: url("../../../assets/images/btn/btn-60-wh-back-foc@3x.png");

View File

@@ -204,6 +204,7 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
onBackButton
onClick={onClick}
onSpotlightUp={onSpotlightUpTButton}
marqueeDisabled={false}
/>
<TBody className={css.tbody} scrollable={false}>
{/* 단일상품 영역 */}