Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit e2d2be4

Browse files
authored
Mitra/ Update Dp2p payment method section (#2495)
* Update Dp2p payment method section * Put the logic inside BoldText component
1 parent a88a0da commit e2d2be4

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

src/pages/payment-methods/_mobile-expanded-list.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ const StyledItemDiv = styled.div`
4545
`
4646
const StyledKeyDiv = styled.div`
4747
width: 50%;
48+
display: flex;
49+
justify-content: flex-end;
4850
4951
@media ${device.mobileL} {
5052
max-width: 120px;
@@ -84,6 +86,10 @@ const StyledRefLink = styled(Flex)`
8486
@media ${device.mobileL} {
8587
justify-content: flex-start;
8688
}
89+
90+
@media ${device.tabletM} {
91+
width: 65%;
92+
}
8793
`
8894

8995
const MobileExpandedList = ({ is_crypto, is_fiat_onramp, is_dp2p, locale, payment_data }) => {
@@ -236,8 +242,11 @@ const MobileExpandedList = ({ is_crypto, is_fiat_onramp, is_dp2p, locale, paymen
236242
{/* reference row */}
237243
<StyledRow jc="space-between" ai="center">
238244
<StyledItemDiv>
239-
<Header type="subtitle-2">{localize('Reference')}</Header>
245+
<Header type="subtitle-2">
246+
{is_dp2p ? localize('More info') : localize('Reference')}
247+
</Header>
240248
</StyledItemDiv>
249+
241250
<StyledKeyDiv>
242251
<>
243252
{payment_data.reference ? (

src/pages/payment-methods/_payment-data.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const StyledIcon = styled.img`
6161
const StyledRefLink = styled(LocalizedLink)`
6262
font-size: 16px;
6363
line-height: 24px;
64-
color: var(--color-blue-9);
64+
color: var(--color-red);
6565
`
6666
/* commented for now unless there is an item that has no icon */
6767
// const NoIconText = styled.div`
@@ -849,12 +849,8 @@ const payment_data = [
849849
deposit_time: <Localize translate_text="500 USD" />,
850850
withdrawal_time: <Localize translate_text="Max 2 hours" />,
851851
reference_link: (
852-
<StyledRefLink
853-
to="/help-centre/deriv-p2p/#what-is-deriv-p2p"
854-
target="_blank"
855-
rel="noopener noreferrer"
856-
>
857-
Deriv P2P FAQ
852+
<StyledRefLink to="/p2p/" target="_blank" rel="noopener noreferrer">
853+
Learn more about Deriv P2P
858854
</StyledRefLink>
859855
),
860856
name: 'DP2P',

src/pages/payment-methods/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,10 @@ const DisplayAccordianItem = ({ pd, crypto_config, locale }) => {
270270
<BoldText>{localize('Processing time')}</BoldText>
271271
</Th>
272272
)}
273-
274273
<Th>
275-
<BoldText>{localize('Reference')}</BoldText>
274+
<BoldText>
275+
{pd.is_dp2p ? localize('More info') : localize('Reference')}
276+
</BoldText>
276277
</Th>
277278
<Th />
278279
</Tr>

src/themes/device.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const device = {
2020
mobileS: `(max-width: ${size.mobileS}px)`,
2121
mobileM: `(max-width: ${size.mobileM}px)`,
2222
mobileL: `(max-width: ${size.mobileL}px)`,
23+
tabletM: `(min-width: ${size.mobileL}px) and (max-width: ${size.tabletL}px)`,
2324
tabletS: `(max-width: ${size.tabletS}px)`,
2425
tablet: `(max-width: ${size.tablet}px)`,
2526
tabletL: `(max-width: ${size.tabletL}px)`,

0 commit comments

Comments
 (0)