Skip to content

Instantly share code, notes, and snippets.

@evertonpavan
Created June 30, 2022 14:41
Show Gist options
  • Save evertonpavan/24c12ddc9fc82d5ee069e3572fd340e5 to your computer and use it in GitHub Desktop.
Save evertonpavan/24c12ddc9fc82d5ee069e3572fd340e5 to your computer and use it in GitHub Desktop.
Modificações - Seguro Cyber
// Modificações - Seguro Cyber
// -----------------------------------------------------------------------
// SUBSTITUIR O CÓDIGO ABAIXO:
<span className="text-span" >
{/* {`Seguro Cyber (${new Intl.NumberFormat('pt-BR', {
style: 'currency',
currency: 'BRL',
}).format(lmg)})${
lmg !== 0
? ` (+ R$ ${monthlyAmountOfSecurityCyber})`
: ''
}`} */}
{
`Seguro Cyber
${lmgDefault === 0
? `(${new Intl.NumberFormat(
'pt-BR',
{
style: 'currency',
currency: 'BRL',
}
).format(lmg)})
(+ R$ ${monthlyAmountOfSecurityCyber})`
: `(${new Intl.NumberFormat(
'pt-BR',
{
style: 'currency',
currency: 'BRL',
}
).format(lmgDefault)})
(+ R$ ${formatReal(monthlyAmountDefault)})`
}
`}
</span>
// POR:
<span className="text-span" >
{/* // valor da cobertura do seguro cyber */ }
{
`Seguro Cyber
${lmgDefault === 0
? `(${new Intl.NumberFormat(
'pt-BR',
{
style: 'currency',
currency: 'BRL',
}
).format(lmg)})`
: `(${new Intl.NumberFormat(
'pt-BR',
{
style: 'currency',
currency: 'BRL',
}
).format(lmgDefault)})`
}
`}
</span>
< span className = "text-span-2" >
{/* // valor da parcela mensal do seguro cyber*/ }
{
`
${lmgDefault === 0
? `(+ R$ ${monthlyAmountOfSecurityCyber})`
: `(+ R$ ${formatReal(monthlyAmountDefault)})`
}
`}
</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment