[TPopUp] 컴포넌트 사용하는 곳에서 $L 적용하도록 수정

This commit is contained in:
jiwon93.son
2024-02-22 10:08:05 +09:00
parent 04124bfb49
commit da8a810f44
2 changed files with 9 additions and 10 deletions

View File

@@ -7,7 +7,6 @@ import Spotlight from "@enact/spotlight";
import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
import Spottable from "@enact/spotlight/Spottable";
import { $L } from "../../utils/helperMethods";
import TButton from "../TButton/TButton";
import css from "../TPopUp/TPopUp.module.less";
@@ -111,8 +110,8 @@ export default function TPopUp({
<Container className={css.info}>
{hasText && (
<div className={css.textLayer}>
{title && <div className={css.title}>{$L(title)}</div>}
{text && <div className={css.text}>{$L(text)}</div>}
{title && <div className={css.title}>{title}</div>}
{text && <div className={css.text}>{text}</div>}
</div>
)}
{options && (
@@ -140,7 +139,7 @@ export default function TPopUp({
{useOptionImg && (
<img src={option.optImgUrl} alt="" className={css.img} />
)}
{$L(option.prodOptCval)}
{option.prodOptCval}
</SpottableComponent>
))}
</ul>
@@ -157,12 +156,12 @@ export default function TPopUp({
else _onClose();
}}
>
{$L(button1Text)}
{button1Text}
</TButton>
)}
{button2Text && (
<TButton spotlightId="tPopupBtn2" onClick={onClose}>
{$L(button2Text)}
{button2Text}
</TButton>
)}
</div>

View File

@@ -7,6 +7,7 @@ import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDeco
import { getHomeTerms } from "../../actions/homeActions";
import { popPanel } from "../../actions/panelActions";
import ExitPopUp from "../../components/ExitPopUp/ExitPopUp";
import TButton, { TYPES } from "../../components/TButton/TButton";
import TPanel from "../../components/TPanel/TPanel";
import TPopUp from "../../components/TPopUp/TPopUp";
@@ -14,7 +15,6 @@ import useDebugKey from "../../hooks/useDebugKey";
import * as Config from "../../utils/Config";
import { $L } from "../../utils/helperMethods";
import css from "./IntroPanel.module.less";
import ExitPopUp from "../../components/ExitPopUp/ExitPopUp";
const Container = SpotlightContainerDecorator(
{ enterTo: "last-focused" },
@@ -115,14 +115,14 @@ export default function IntroPanel({ children, ...rest }) {
open={termsPopUpOpen}
onClose={() => setTermsPopUpOpen(false)}
hasButton
button1Text="OK"
button1Text={$L("OK")}
>
{currentTerms && (
<div className={css.introTermsConts}>
<div className={css.termsTitle}>
{currentTerms.trmsTpCd === "MST00401"
? "Privacy Policy"
: "Terms & Conditions"}
? $L("Privacy Policy")
: $L("Terms & Conditions")}
</div>
<div
className={css.termsDesc}