[지라 이슈 없음] THeader.jsx, $L 추가
This commit is contained in:
@@ -6,6 +6,7 @@ import { Marquee } from "@enact/sandstone/Marquee";
|
|||||||
import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
|
import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
|
||||||
import Spottable from "@enact/spotlight/Spottable";
|
import Spottable from "@enact/spotlight/Spottable";
|
||||||
|
|
||||||
|
import { $L } from "../../utils/helperMethods";
|
||||||
import css from "./THeader.module.less";
|
import css from "./THeader.module.less";
|
||||||
|
|
||||||
const Container = SpotlightContainerDecorator(
|
const Container = SpotlightContainerDecorator(
|
||||||
@@ -29,7 +30,7 @@ export default function THeader({
|
|||||||
const convertedTitle = useMemo(() => {
|
const convertedTitle = useMemo(() => {
|
||||||
if (title) {
|
if (title) {
|
||||||
const cleanedTitle = title.replace(/(\r\n|\n)/g, "");
|
const cleanedTitle = title.replace(/(\r\n|\n)/g, "");
|
||||||
return marqueeDisabled ? title : cleanedTitle;
|
return $L(marqueeDisabled ? title : cleanedTitle);
|
||||||
}
|
}
|
||||||
}, [marqueeDisabled, title]);
|
}, [marqueeDisabled, title]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user