added the alert logic for the coordinators with no on chain swap

This commit is contained in:
khadar vali
2025-03-10 14:42:22 +05:30
committed by khadar1020
parent 08bcc574fc
commit 23e9a965cb

View File

@ -9,6 +9,7 @@ import {
type SelectChangeEvent, type SelectChangeEvent,
CircularProgress, CircularProgress,
Stack, Stack,
Alert
} from '@mui/material'; } from '@mui/material';
import { Link } from '@mui/icons-material'; import { Link } from '@mui/icons-material';
import RobotAvatar from '../RobotAvatar'; import RobotAvatar from '../RobotAvatar';
@ -45,6 +46,13 @@ const SelectCoordinator: React.FC<SelectCoordinatorProps> = ({
return ( return (
<Grid item> <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 <Box
sx={{ sx={{
backgroundColor: 'background.paper', backgroundColor: 'background.paper',