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,
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',