Enhance PaidUntilBadge component to support pending payment review status
- Updated the PaidUntilBadge component to accept a new `pendingReview` prop, indicating if a payment is awaiting admin confirmation. - Modified the rendering logic to display a warning badge when a payment is under review, providing users with a neutral status instead of a negative one. - Updated relevant components in billing and dashboard routes to pass the new `pendingReview` prop based on the active payment request status. - Added internationalization support for new labels related to the pending review status in both English and Russian.
This commit is contained in:
@@ -114,6 +114,8 @@ const resources = {
|
||||
daysRemaining: '{{count}} дн.',
|
||||
hoursMinutesRemaining: '{{hours}} ч {{minutes}} мин',
|
||||
minutesRemaining: '{{count}} мин',
|
||||
pendingReviewShort: 'На проверке',
|
||||
pendingReviewHint: 'Оплата отправлена на проверку администратору — доступ не будет приостановлен, пока заявка не решена.',
|
||||
newRequest: 'Оформить оплату',
|
||||
period: 'Период',
|
||||
periods: {
|
||||
@@ -638,6 +640,8 @@ const resources = {
|
||||
daysRemaining: '{{count}}d',
|
||||
hoursMinutesRemaining: '{{hours}}h {{minutes}}m',
|
||||
minutesRemaining: '{{count}}m',
|
||||
pendingReviewShort: 'Under review',
|
||||
pendingReviewHint: 'Payment sent for admin review — access will not be suspended until the request is decided.',
|
||||
newRequest: 'Set up payment',
|
||||
period: 'Period',
|
||||
periods: {
|
||||
|
||||
Reference in New Issue
Block a user