DetailPanel 최초진입시 포커스 && PlayerPanel Live 방송일때 재진입할때 랜더링안되는 현상 수정

This commit is contained in:
고동영
2024-04-15 14:52:12 +09:00
parent b05f7926f4
commit 92505bbfb9
12 changed files with 175 additions and 116 deletions

View File

@@ -2,7 +2,9 @@ import React, { useCallback } from "react";
import classNames from "classnames";
import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
import SpotlightContainerDecorator, {
spotlightDefaultClass,
} from "@enact/spotlight/SpotlightContainerDecorator";
import Spottable from "@enact/spotlight/Spottable";
import css from "./THeader.module.less";
@@ -32,7 +34,11 @@ export default function THeader({
return (
<Container className={classNames(css.tHeader, className)}>
{onBackButton && (
<SpottableComponent className={css.button} onClick={_onClick} />
<SpottableComponent
className={css.button}
onClick={_onClick}
spotlightId={"spotlightId_backBtn"}
/>
)}
<div className={css.title}>{title}</div>
{children}