detail 레이아웃 작업 및 indicator추가 TButton BackKey props 추가
This commit is contained in:
@@ -1,17 +1,20 @@
|
||||
import React from "react";
|
||||
|
||||
import css from "./THeader.module.less";
|
||||
import classNames from "classnames";
|
||||
|
||||
import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
|
||||
|
||||
import css from "./THeader.module.less";
|
||||
|
||||
const Container = SpotlightContainerDecorator(
|
||||
{ enterTo: "last-focused" },
|
||||
"div"
|
||||
);
|
||||
|
||||
export default function THeader({ title, className }) {
|
||||
export default function THeader({ title, className, onBackButton, onClick }) {
|
||||
return (
|
||||
<Container className={classNames(css.tHeader, className)}>
|
||||
{onBackButton && <button className={css.button} onClick={onClick} />}
|
||||
<div className={css.title}>{title}</div>
|
||||
</Container>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user