RemoveMinerDialog
Confirmation modal for removing a miner from a slot with an optional reason capture.
Confirmation modal for removing a miner from a slot with an optional reason capture.
import { RemoveMinerDialog } from "@tetherto/mdk-react-devkit";| Prop | Status | Type | Default | Description |
|---|---|---|---|---|
headDevice | Optional | Device | undefined | — | — |
isRemoveMinerFlow | Required | boolean | — | — |
onCancel | Required | VoidFunction | — | — |
Usage
Confirmation modal for removing a miner from its slot, with an optional reason-capture step when isRemoveMinerFlow is true.
Minimal example
import { RemoveMinerDialog } from "@tetherto/mdk-react-devkit";
<RemoveMinerDialog
isRemoveMinerFlow={true}
onCancel={() => setOpen(false)}
headDevice={device}
/>
Example
import { RemoveMinerDialog } from '@tetherto/mdk-react-devkit'export const RemoveMinerDialogExample = () => ( <div className="mdk-example-row"> <RemoveMinerDialog isRemoveMinerFlow={true} onCancel={() => console.warn('cancelled')} /> </div>)