Replaced electron-settings with store. Implemented job upsert logic.
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user