Added delete all EMS functionality RPS-11
This commit is contained in:
17
src/components/atoms/delete-all-ems/delete-all-ems.atom.jsx
Normal file
17
src/components/atoms/delete-all-ems/delete-all-ems.atom.jsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Button, Popconfirm } from "antd";
|
||||
import React from "react";
|
||||
import ipcTypes from "../../../ipc.types";
|
||||
|
||||
const { ipcRenderer } = window;
|
||||
export default function DeleteAllEmsAtom() {
|
||||
return (
|
||||
<Popconfirm
|
||||
title="Are you sure you want to delete all EMS files? This cannot be undone."
|
||||
onConfirm={() =>
|
||||
ipcRenderer.send(ipcTypes.default.fileScan.toMain.deleteAllEms)
|
||||
}
|
||||
>
|
||||
<Button>Delete All EMS</Button>
|
||||
</Popconfirm>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user