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 4ff80a2

Browse files
committed
Update Dp2p payment method section
1 parent 6a1f59f commit 4ff80a2

File tree

4 files changed

+24
-11
lines changed

4 files changed

+24
-11
lines changed

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

Lines changed: 11 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,9 @@ const StyledRefLink = styled(Flex)`
8486
@media ${device.mobileL} {
8587
justify-content: flex-start;
8688
}
89+
@media ${device.tabletM} {
90+
width: 65%;
91+
}
8792
`
8893

8994
const MobileExpandedList = ({ is_crypto, is_fiat_onramp, is_dp2p, locale, payment_data }) => {
@@ -236,8 +241,13 @@ const MobileExpandedList = ({ is_crypto, is_fiat_onramp, is_dp2p, locale, paymen
236241
{/* reference row */}
237242
<StyledRow jc="space-between" ai="center">
238243
<StyledItemDiv>
239-
<Header type="subtitle-2">{localize('Reference')}</Header>
244+
{is_dp2p ? (
245+
<Header type="subtitle-2">{localize('More info')}</Header>
246+
) : (
247+
<Header type="subtitle-2">{localize('Reference')}</Header>
248+
)}
240249
</StyledItemDiv>
250+
241251
<StyledKeyDiv>
242252
<>
243253
{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: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,15 @@ const DisplayAccordianItem = ({ pd, crypto_config, locale }) => {
271271
</Th>
272272
)}
273273

274-
<Th>
275-
<BoldText>{localize('Reference')}</BoldText>
276-
</Th>
274+
{pd.is_dp2p ? (
275+
<Th>
276+
<BoldText>{localize('More info')}</BoldText>
277+
</Th>
278+
) : (
279+
<Th>
280+
<BoldText>{localize('Reference')}</BoldText>
281+
</Th>
282+
)}
277283
<Th />
278284
</Tr>
279285
</Thead>

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)