mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-15 01:50:57 -05:00
3486cd0c91
[web] Add colon after translation in price exceptions GitOrigin-RevId: 99dc7cb25373693edf4b06f5a2640ed7a1491777
31 lines
796 B
TypeScript
31 lines
796 B
TypeScript
import { useTranslation } from 'react-i18next'
|
|
import { RecurlySubscription } from '../../../../../../types/subscription/dashboard/subscription'
|
|
|
|
type PriceExceptionsProps = {
|
|
subscription: RecurlySubscription
|
|
}
|
|
|
|
export function PriceExceptions({ subscription }: PriceExceptionsProps) {
|
|
const { t } = useTranslation()
|
|
const { activeCoupons } = subscription.recurly
|
|
|
|
return (
|
|
<>
|
|
<p>
|
|
<i>* {t('subject_to_additional_vat')}</i>
|
|
</p>
|
|
{activeCoupons.length > 0 && (
|
|
<>
|
|
<i>* {t('coupons_not_included')}:</i>
|
|
<ul>
|
|
{activeCoupons.map(coupon => (
|
|
<li key={coupon.id}>
|
|
<i>{coupon.description || coupon.name}</i>
|
|
</li>
|
|
))}
|
|
</ul>
|
|
</>
|
|
)}
|
|
</>
|
|
)
|
|
}
|