Fix hide F2F button on swap mode maker form

This commit is contained in:
Reckless_Satoshi 2023-10-18 10:35:36 -07:00
parent 2af9af97ea
commit d145c0c2d4
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -828,28 +828,30 @@ const MakerForm = ({
)} )}
</Grid> </Grid>
<Grid item sx={{ width: '100%' }}> {fav.mode === 'fiat' && (
<Tooltip enterTouchDelay={0} title={t('Add geolocation for a face to face trade')}> <Grid item sx={{ width: '100%' }}>
<Button <Tooltip enterTouchDelay={0} title={t('Add geolocation for a face to face trade')}>
size='large' <Button
fullWidth={true} size='large'
color='inherit' fullWidth={true}
variant='outlined' color='inherit'
sx={{ variant='outlined'
justifyContent: 'flex-start', sx={{
fontWeight: 'normal', justifyContent: 'flex-start',
textTransform: 'none', fontWeight: 'normal',
backgroundColor: theme.palette.background.paper, textTransform: 'none',
color: theme.palette.text.secondary, backgroundColor: theme.palette.background.paper,
borderColor: theme.palette.text.disabled, color: theme.palette.text.secondary,
}} borderColor: theme.palette.text.disabled,
onClick={() => setOpenWorldmap(true)} }}
> onClick={() => setOpenWorldmap(true)}
{t('Face to Face Location')} >
<Map style={{ paddingLeft: 5 }} /> {t('Face to Face Location')}
</Button> <Map style={{ paddingLeft: 5 }} />
</Tooltip> </Button>
</Grid> </Tooltip>
</Grid>
)}
{!maker.advancedOptions && pricingMethods ? ( {!maker.advancedOptions && pricingMethods ? (
<Grid item xs={12}> <Grid item xs={12}>