mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-06-21 05:14:40 -04:00
Initial commit
This commit is contained in:
commit
bc188870af
162 changed files with 13820 additions and 0 deletions
44
src/renderer/components/modal/SwapSuspendAlert.tsx
Normal file
44
src/renderer/components/modal/SwapSuspendAlert.tsx
Normal file
|
@ -0,0 +1,44 @@
|
|||
import {
|
||||
Button,
|
||||
Dialog,
|
||||
DialogActions,
|
||||
DialogContent,
|
||||
DialogContentText,
|
||||
DialogTitle,
|
||||
} from '@material-ui/core';
|
||||
import IpcInvokeButton from '../IpcInvokeButton';
|
||||
|
||||
type SwapCancelAlertProps = {
|
||||
open: boolean;
|
||||
onClose: () => void;
|
||||
};
|
||||
|
||||
export default function SwapSuspendAlert({
|
||||
open,
|
||||
onClose,
|
||||
}: SwapCancelAlertProps) {
|
||||
return (
|
||||
<Dialog open={open} onClose={onClose}>
|
||||
<DialogTitle>Force stop running operation?</DialogTitle>
|
||||
<DialogContent>
|
||||
<DialogContentText>
|
||||
Are you sure you want to force stop the running swap?
|
||||
</DialogContentText>
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
<Button onClick={onClose} color="primary">
|
||||
No
|
||||
</Button>
|
||||
<IpcInvokeButton
|
||||
ipcChannel="suspend-current-swap"
|
||||
ipcArgs={[]}
|
||||
color="primary"
|
||||
onSuccess={onClose}
|
||||
requiresRpc
|
||||
>
|
||||
Force stop
|
||||
</IpcInvokeButton>
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue