Implemented job upload

This commit is contained in:
Patrick Fic
2020-10-14 17:08:47 -07:00
parent e7614942e5
commit 0a3c87a6f2
25 changed files with 347 additions and 131 deletions

View File

@@ -0,0 +1,11 @@
import { Button } from "antd";
import React from "react";
import ipcTypes from "../../../ipc.types";
const { ipcRenderer } = window;
export default function FilepathAddMolecule() {
const handleClick = () => {
ipcRenderer.send(ipcTypes.default.fileWatcher.toMain.addPath);
};
return <Button onClick={handleClick}>Add Path</Button>;
}

View File

@@ -1,6 +1,6 @@
import { List } from "antd";
import React from "react";
export default function FilePathMolecule(item) {
return <List.Item title={item}>{item}</List.Item>;
export default function FilePathMolecule(item, index) {
return <List.Item key={index}>{item}</List.Item>;
}