Replaced electron-settings with store. Implemented job upsert logic.

This commit is contained in:
Patrick Fic
2020-10-15 15:18:38 -07:00
parent 67cae24b6c
commit e467f74362
18 changed files with 385 additions and 131 deletions

View File

@@ -1,6 +1,17 @@
import { List } from "antd";
import React from "react";
import { DeleteFilled } from "@ant-design/icons";
import ipcTypes from "../../../ipc.types";
const { ipcRenderer } = window;
export default function FilePathMolecule(item, index) {
return <List.Item key={index}>{item}</List.Item>;
const handleClick = () => {
ipcRenderer.send(ipcTypes.default.fileWatcher.toMain.removePath, item);
};
return (
<List.Item key={index} actions={[<DeleteFilled onClick={handleClick} />]}>
{item}
</List.Item>
);
}