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.

Nuri/update: Updated payment list based on design.Waiting for missing reference pdf #1762

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/images/svg/payment-methods/payment-trustly.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/images/svg/payment-methods/payment-visa-electron.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 8 additions & 7 deletions src/pages/payment-methods/_expanded-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import styled, { css } from 'styled-components'
import { Button } from 'components/form/'
import { Text } from 'components/elements'
import { localize } from 'components/localization'
import { getCryptoDecimals } from 'common/utility'
// import { getCryptoDecimals } from 'common/utility'
// SVG
import Chevron from 'images/svg/chevron-thick.svg'
import PDF from 'images/svg/pdf-icon-black.svg'
Expand Down Expand Up @@ -103,14 +103,14 @@ const Withdrawal = styled(Td)`
}
`

const ExpandList = ({ data, config, is_crypto, is_fiat_onramp, locale }) => {
const ExpandList = ({ data, /*config,*/ is_crypto, is_fiat_onramp, locale }) => {
const [is_expanded, setIsExpanded] = React.useState(false)
const toggleExpand = () => {
setIsExpanded(!is_expanded)
}
const getCryptoConfig = (name) => {
return config == undefined ? null : getCryptoDecimals(config[name].minimum_withdrawal)
}
// const getCryptoConfig = (name) => {
// return config == undefined ? null : getCryptoDecimals(config[name].minimum_withdrawal)
// }
return (
<>
<Tr is_expanded={is_expanded}>
Expand All @@ -133,7 +133,8 @@ const ExpandList = ({ data, config, is_crypto, is_fiat_onramp, locale }) => {
<Text key={idx}>{md}</Text>
))
) : is_crypto ? (
<Text>{getCryptoConfig(data.name)}</Text>
// <Text>{getCryptoConfig(data.name)}</Text>
<Text>{data.min_max_withdrawal}</Text>
) : (
<Text>{data.min_max_withdrawal}</Text>
)}
Expand Down Expand Up @@ -188,7 +189,7 @@ const ExpandList = ({ data, config, is_crypto, is_fiat_onramp, locale }) => {
}

ExpandList.propTypes = {
config: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]),
// config: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]),
data: PropTypes.object,
is_crypto: PropTypes.bool,
is_fiat_onramp: PropTypes.bool,
Expand Down
Loading