mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Show tax note conditionally and update zero-tax disclaimer wording (#34454)
* Hide tax note when tax is included and update zero-tax disclaimer wording * fix: update taxes_may_be_added key in all non-English locale files GitOrigin-RevId: 9cd0e0aba6d548221e97d383b0a2e52a2e0a077c
This commit is contained in:
+6
-4
@@ -7,13 +7,15 @@ type PriceExceptionsProps = {
|
||||
|
||||
export function PriceExceptions({ subscription }: PriceExceptionsProps) {
|
||||
const { t } = useTranslation()
|
||||
const { activeCoupons } = subscription.payment
|
||||
const { activeCoupons, taxRate } = subscription.payment
|
||||
|
||||
return (
|
||||
<>
|
||||
<p>
|
||||
<i>* {t('subject_to_additional_vat')}</i>
|
||||
</p>
|
||||
{!(taxRate > 0) && (
|
||||
<p>
|
||||
<i>* {t('taxes_may_be_added')}</i>
|
||||
</p>
|
||||
)}
|
||||
{activeCoupons.length > 0 && (
|
||||
<>
|
||||
<i>* {t('coupons_not_included')}:</i>
|
||||
|
||||
Reference in New Issue
Block a user