mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
[web] use the correct Stripe payment confirmation function for upgrades (#29151)
GitOrigin-RevId: d7447d180f1c0320989d7f86bb1d46173e235e46
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
import { Trans } from 'react-i18next'
|
||||
import OLNotification from '@/shared/components/ol/ol-notification'
|
||||
import getMeta from '@/utils/meta'
|
||||
|
||||
export default function RedirectedPaymentErrorNotification() {
|
||||
const hasRedirectedPaymentError = Boolean(
|
||||
getMeta('ol-subscriptionPaymentErrorCode')
|
||||
)
|
||||
|
||||
if (!hasRedirectedPaymentError) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<OLNotification
|
||||
className="mb-4"
|
||||
aria-live="polite"
|
||||
content={
|
||||
<Trans
|
||||
i18nKey="payment_error_generic"
|
||||
components={[
|
||||
/* eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key */
|
||||
<a href="/contact" target="_blank" />,
|
||||
]}
|
||||
/>
|
||||
}
|
||||
type="error"
|
||||
/>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user