Skip to content

Commit

Permalink
Ameerul /Bug 64559 delete pm name handle for long value (#6107)
Browse files Browse the repository at this point in the history
* changed the margin-top for mobile view for buy-sell

* merging upstream master

* changed the payment methods list modal and wrapped the text for long bank names
  • Loading branch information
ameerul-deriv committed Aug 15, 2022
1 parent 102059b commit 9a5b143
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,18 +145,20 @@ const PaymentMethodsList = () => {
is_open={my_profile_store.is_confirm_delete_modal_open}
small
has_close_icon={false}
title={localize('Delete {{payment_method_name}}?', {
payment_method_name:
my_profile_store?.payment_method_to_delete?.fields?.bank_name?.value ||
my_profile_store?.payment_method_to_delete?.fields?.name?.value ||
my_profile_store?.payment_method_to_delete?.fields?.account?.value,
})}
onMount={() => general_store.setIsModalOpen(true)}
onUnmount={() => general_store.setIsModalOpen(false)}
>
<Modal.Body>
<Modal.Body className='payment-methods-list__modal-wrapper'>
<Text as='p' size='xs' color='prominent'>
<Localize i18n_default_text='Are you sure you want to remove this payment method?' />
<Localize
i18n_default_text='Delete {{payment_method_name}}?'
values={{
payment_method_name:
my_profile_store?.payment_method_to_delete?.fields?.bank_name?.value ||
my_profile_store?.payment_method_to_delete?.fields?.name?.value ||
my_profile_store?.payment_method_to_delete?.fields?.account?.value,
}}
/>
</Text>
</Modal.Body>
<Modal.Footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
bottom: 0;
position: fixed;
}

&-wrapper {
display: flex;
word-break: break-all;
}
}
&__button {
margin: 0 0 2.4rem;
Expand Down

1 comment on commit 9a5b143

@vercel
Copy link

@vercel vercel bot commented on 9a5b143 Aug 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-app – ./

binary.sx
deriv-app.binary.sx
deriv-app.vercel.app
deriv-app-git-master.binary.sx

Please sign in to comment.