mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-19 01:03:20 +00:00
Merge pull request #1804 from khadar1020/alert-user-for-coordinators
added the alert logic for the coordinators with no on chain swap
This commit is contained in:
@ -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',
|
||||||
|
Reference in New Issue
Block a user