MDK Logo
UI Kitreact-devkitComponentsFoundationWidgets

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";
PropStatusTypeDefaultDescription
headDeviceOptionalDevice | undefined
isRemoveMinerFlowRequiredboolean
onCancelRequiredVoidFunction

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>)