Skip to content

Commit

Permalink
Merge pull request binary-com#35 from akmal-binary/payment-methods
Browse files Browse the repository at this point in the history
PM minor fixes
  • Loading branch information
carolsachdeva committed Feb 25, 2022
2 parents 863f6b9 + 95627c9 commit 9a4157b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions packages/p2p/src/components/buy-sell/buy-sell-modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ const BuySellModal = ({ table_type, selected_ad, should_show_popup, setShouldSho
}, [should_show_popup]);

const Form = general_store.nickname ? BuySellForm : NicknameForm;
const modal_title =
table_type === buy_sell.BUY
? localize('Buy {{ currency }}', { currency: selected_ad.account_currency })
: localize('Sell {{ currency }}', { currency: selected_ad.account_currency });
const modal_title = my_profile_store.should_show_add_payment_method_form
? localize('Add a payment method')
: table_type === buy_sell.BUY
? localize('Buy {{ currency }}', { currency: selected_ad.account_currency })
: localize('Sell {{ currency }}', { currency: selected_ad.account_currency });

if (isMobile()) {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/p2p/src/components/buy-sell/buy-sell-row.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@include mobile {
border-bottom: 1px solid var(--general-section-1);
padding: 1.6rem;
height: 200px;
height: 18.6rem;
display: flex;
flex-direction: column;
}
Expand Down

0 comments on commit 9a4157b

Please sign in to comment.