Updated packages + changed chokidar options to fix compatibility with network monitoring.

This commit is contained in:
Patrick Fic
2020-10-21 11:26:44 -07:00
parent 888fac2abf
commit ee3136a3ac
7 changed files with 1453 additions and 1814 deletions

View File

@@ -7,6 +7,8 @@ import {
selectWatcherStatus,
} from "../../../redux/application/application.selectors";
const { ipcRenderer } = window;
const mapStateToProps = createStructuredSelector({
watcherStatus: selectWatcherStatus,
watcherError: selectWatcherError,
@@ -14,7 +16,10 @@ const mapStateToProps = createStructuredSelector({
export function WatcherStatusAtom({ watcherStatus, watcherError }) {
return (
<div style={{ color: watcherStatus === "Started" ? "green" : "tomato" }}>
<div
onDoubleClick={() => ipcRenderer.send("test")}
style={{ color: watcherStatus === "Started" ? "green" : "tomato" }}
>
<strong>{watcherStatus}</strong>
{watcherError && <Alert message={watcherError} />}
</div>