mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-18 16:53:16 +00:00
added the alert logic for the coordinators with no on chain swap
This commit is contained in:
@ -9,6 +9,7 @@ import {
|
||||
type SelectChangeEvent,
|
||||
CircularProgress,
|
||||
Stack,
|
||||
Alert
|
||||
} from '@mui/material';
|
||||
import { Link } from '@mui/icons-material';
|
||||
import RobotAvatar from '../RobotAvatar';
|
||||
@ -45,6 +46,13 @@ const SelectCoordinator: React.FC<SelectCoordinatorProps> = ({
|
||||
|
||||
return (
|
||||
<Grid item>
|
||||
<Grid sx={{ marginBottom: 1 }}>
|
||||
{!coordinator?.info?.swap_enabled && (
|
||||
<Alert severity='warning' sx={{ marginTop: 2 }}>
|
||||
{t('This coordinator does not support on-chain swaps.')}
|
||||
</Alert>
|
||||
)}
|
||||
</Grid>
|
||||
<Box
|
||||
sx={{
|
||||
backgroundColor: 'background.paper',
|
||||
|
Reference in New Issue
Block a user