Enhance PaidUntilBadge and UserManageDialog to display billing date
- Updated the PaidUntilBadge component to accept a new `showDate` prop, allowing it to display the billing date alongside the remaining days. - Modified UserManageDialog and admin user management components to utilize the updated PaidUntilBadge, improving context for billing information. - Added internationalization support for the new date format in both English and Russian.
This commit is contained in:
@@ -77,7 +77,7 @@ function AdminUsersPage() {
|
||||
</td>
|
||||
<td className="py-2">
|
||||
{user.billingEnabled ? (
|
||||
<PaidUntilBadge paidUntil={user.billingPaidUntil} />
|
||||
<PaidUntilBadge paidUntil={user.billingPaidUntil} showDate />
|
||||
) : (
|
||||
<span className="text-muted-foreground">—</span>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user