MaintenanceDialogContent
Body of the maintenance dialog — captures the work-order details before applying the maintenance flag.
Body of the maintenance dialog — captures the work-order details before applying the maintenance flag.
import { MaintenanceDialogContent } from "@tetherto/mdk-react-devkit";| Prop | Status | Type | Default | Description |
|---|---|---|---|---|
selectedEditSocket | Optional | Partial<SelectedEditSocket> | — | — |
onCancel | Optional | VoidFunction | — | — |
Usage
Form body inside the maintenance dialog. Captures work-order details (reason, technician, notes) before applying the maintenance flag to a miner slot.
Minimal example
import { MaintenanceDialogContent } from "@tetherto/mdk-react-devkit";
<MaintenanceDialogContent
selectedEditSocket={socket}
onCancel={() => setOpen(false)}
/>
Example
import { MaintenanceDialogContent } from '@tetherto/mdk-react-devkit'export const MaintenanceDialogContentExample = () => ( <div className="mdk-example-row"> <MaintenanceDialogContent selectedEditSocket={{}} onCancel={() => console.warn('cancelled')} /> </div>)