Added polling for watcher.

This commit is contained in:
Patrick Fic
2020-10-20 10:53:50 -07:00
parent 900724f660
commit c277f6d32d
20 changed files with 205 additions and 19 deletions

View File

@@ -1,10 +1,17 @@
import { Col, Row } from "antd";
import React from "react";
import React, { useEffect } from "react";
import ipcTypes from "../../../ipc.types";
import WatcherPollingMolecule from "../../molecules/watcher-polling/watcher-polling.molecule";
import FilePathsListOrganism from "../../organisms/filepaths-list/filepaths-list.organism";
import ShopSettingsOrganism from "../../organisms/shop-settings/shop-settings.organism";
import WatcherManagerOrganism from "../../organisms/watcher-manager/watcher-manager.organism";
const { ipcRenderer } = window;
export default function SettingsPage() {
useEffect(() => {
ipcRenderer.send(ipcTypes.default.store.getAll);
}, []);
return (
<div>
<Row gutter={[16, 16]}>
@@ -13,6 +20,7 @@ export default function SettingsPage() {
</Col>
<Col span={6}>
<WatcherManagerOrganism />
<WatcherPollingMolecule />
</Col>
</Row>