Added delete all EMS functionality RPS-11

This commit is contained in:
Patrick Fic
2020-10-26 10:22:21 -07:00
parent 89a8ad380f
commit 6359641b8c
6 changed files with 68 additions and 16 deletions

View 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>
);
}