[PlayerPanel] channel title dangerousHTML

This commit is contained in:
고동영
2024-06-25 11:17:22 +09:00
parent 76d5398a96
commit 2bf6e43dda
4 changed files with 47 additions and 46 deletions

View File

@@ -69,6 +69,10 @@ export default function LiveChannelContents({
);
};
const showNameDangerouslySetInnerHTML = () => {
return { __html: showNm };
};
return (
<PlayerItemCard
{...rest}
@@ -77,7 +81,11 @@ export default function LiveChannelContents({
logo={patncLogoPath}
imageSource={thumbnailUrl ? thumbnailUrl : dfltThumbnailImgPath}
videoVerticalVisible={videoVerticalVisible}
productName={showNm ? showNm : $L("No Livestream scheduled yet")}
productName={
showNm
? showNameDangerouslySetInnerHTML
: $L("No Livestream scheduled yet")
}
patnerName={patncNm}
onClick={handleItemClick}
onFocus={handleFocus()}