Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [IOCOM-1199] Vertically ordered CTAs and Payment button on new …
…DS message details screen (#5636) ## Short description This PR changes the CTAs and Payment buttons alignment on a message details screen with the new DS. |Payment with<br/>double CTAs|Payment with<br/>CTA|No payment<br/>double CTAs| |-|-|-| |||| |Payment<br/>without CTAs|CTA without<br/>payment|No payment<br/>no CTAs| |-|-|-| |||| ## List of changes proposed in this pull request The algorithm is a follow: - if there is a payment and two CTAs, the payment button is shown on top (solid), the first CTA button is on the middle (Outline) and the second CTA button is on the bottom (as a link) - if there is a payment and a single CTA, the payment button is shown on top (solid) and the CTA button is on the bottom (as a link) - if there is no payment and two CTAs, the first CTA button in on top (solid) and the second CTA button is on the bottom (as a link) - if there is a payment and no CTAs, the payment button is displayed (solid) - if there is no payment and a single CTA, the CTA button is displayed (solid) - if there is no payment and no CTAs, the sticky footer is not displayed Keep in mind that the payment button may disappear asynchronously if the payment is later checked to be paid. ## How to test Using the io-dev-api-server, generate some messages with payment and CTAs and check that each of the conditions described above is verified.
- Loading branch information