Closed yashasvi-jain closed 2 months ago
This pull request focuses on improving the payment modal and add payment method modal by ensuring the default payment method is selected and handling cases where no payment methods are available. It also simplifies the violation ticket detail container by removing unnecessary queries and form items.
Files | Changes |
---|---|
ui-community/src/components/layouts/members/components/payment-modal.tsx ui-community/src/components/layouts/members/components/add-payment-method-modal.tsx ui-community/src/components/layouts/members/components/add-payment-method-modal.container.tsx ui-community/src/components/layouts/members/components/payment-instruments-list.tsx |
Enhanced the payment modal and add payment method modal to handle default payment methods and improved error handling and loading states. |
ui-community/src/components/layouts/members/components/violation-ticket-detail.container.tsx ui-community/src/components/layouts/members/components/violation-ticket-detail.tsx ui-community/src/components/layouts/admin/components/violation-tickets-detail.container.graphql |
Simplified the violation ticket detail container by removing unnecessary queries and form items. |
Changes made
Summary by Sourcery
This pull request addresses issues related to payment methods. It ensures that the default payment method is selected in the payment modal if available, and displays an Empty component with an action button if no payment methods exist. Additionally, it enforces that the first payment method added is set as the default.