inner html added

This commit is contained in:
VividTruthKeeper 2022-06-03 20:01:31 +05:00
parent d40c1a0982
commit 065fbe3caf
2 changed files with 28 additions and 3 deletions

View File

@ -140,8 +140,30 @@ const CreditStage1 = ({ setStage, data, setData, creditData, id, setId }) => {
? "Karzyň üzülmegini üpjün etmek"
: "Обеспечение возврата кредита"}
</h6>
<h2>
{creditData
<h2
dangerouslySetInnerHTML={{
__html: creditData
? locale !== "TKM"
? creditData.data
.map((el) =>
el.id === id
? JSON.parse(
el.translations.find(
(els) => els.locale === "ru"
).attribute_data
).securing_return
: ""
)
.filter((string) => string !== "")
: creditData.data
.map((el) =>
el.id === id ? el.securing_return : ""
)
.filter((string) => string !== "")
: "",
}}
>
{/* {creditData
? locale !== "TKM"
? creditData.data.map((el) =>
el.id === id
@ -155,7 +177,7 @@ const CreditStage1 = ({ setStage, data, setData, creditData, id, setId }) => {
: creditData.data.map((el) =>
el.id === id ? el.securing_return : ""
)
: ""}
: ""} */}
</h2>
</div>
<div className="dropdown-inner left right">

View File

@ -88,6 +88,9 @@
font-size: 2.2rem;
font-weight: normal;
text-align: center;
* {
font-size: 2.2rem !important;
}
}
&.right {