Make explicit BTC payment methods are swaps

This commit is contained in:
Reckless_Satoshi 2022-02-19 02:45:42 -08:00
parent fc4ccd5281
commit dbb86657ac
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
5 changed files with 9 additions and 4 deletions

View File

@ -222,7 +222,7 @@ export default class MakerPage extends Component {
<Tooltip placement="top" enterTouchDelay="500" enterDelay="700" enterNextDelay="2000" title="Enter your prefered payment methods">
<TextField
sx={{width:240}}
label="Payment Method(s)"
label={this.state.currency==1000 ? "Swap Destination (e.g. rBTC)":"Payment Method(s)"}
error={this.state.badPaymentMethod}
helperText={this.state.badPaymentMethod ? "Must be shorter than 35 characters":""}
type="text"

View File

@ -479,7 +479,7 @@ export default class OrderPage extends Component {
<ListItemIcon>
<PaymentsIcon/>
</ListItemIcon>
<ListItemText primary={this.state.payment_method} secondary="Accepted payment methods"/>
<ListItemText primary={this.state.payment_method} secondary={this.state.currency==1000 ? "Swap destination":"Accepted payment methods"}/>
</ListItem>
<Divider />

View File

@ -1,5 +1,6 @@
import React, { Component } from 'react';
import SvgIcon from '@mui/material/SvgIcon';
import SwapCallsIcon from '@mui/icons-material/SwapCalls';
export default function getFlags(code){
if(code == 'AUD') return '🇦🇺';
@ -37,6 +38,6 @@ export default function getFlags(code){
if(code == 'UYU') return '🇺🇾';
if(code == 'PYG') return '🇵🇾';
if(code == 'BOB') return '🇧🇴';
if(code == 'BTC') return <SvgIcon className='svg-icon' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="96px" height="96px"><path fill="#f5bc00" d="M24,44L24,44c11.045,0,20-8.955,20-20l0,0c0-11.045-8.955-20-20-20l0,0C12.955,4,4,12.955,4,24l0,0 C4,35.047,12.953,44,24,44z"/><path fill="#fae56b" d="M33,20c0-2.608-1.672-4.831-4-5.657V11h-4v3h-3v-3h-4v3h-3v4h3v12h-3v4h3v3h4v-3h3v3h4v-3.343 c2.328-0.825,4-3.049,4-5.657c0-1.535-0.58-2.938-1.532-4C32.42,22.938,33,21.535,33,20z M22,18h5c1.103,0,2,0.897,2,2s-0.897,2-2,2 h-5V18z M27,30h-5v-4h5c1.103,0,2,0.897,2,2S28.103,30,27,30z"/><rect width="4" height="4" x="18" y="14" fill="#fff3b8"/><rect width="4" height="4" x="18" y="30" fill="#fff3b8"/></SvgIcon>;
if(code == 'BTC') return <SwapCallsIcon className='svg-icon' color="primary" />;
return '🏳';
};

File diff suppressed because one or more lines are too long

View File

@ -606,6 +606,10 @@
!*** ./node_modules/@mui/icons-material/Inventory.js ***!
\*******************************************************/
/*!*******************************************************!*\
!*** ./node_modules/@mui/icons-material/SwapCalls.js ***!
\*******************************************************/
/*!*******************************************************!*\
!*** ./node_modules/@mui/material/Divider/Divider.js ***!
\*******************************************************/