mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
b52c151a6f
[web] Subscription dash fix CI issues GitOrigin-RevId: 53e7a6ede9d0f07be1e0d1f1c6180bd1a5cecf84
31 lines
795 B
TypeScript
31 lines
795 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>
|
|
</>
|
|
)}
|
|
</>
|
|
)
|
|
}
|