Added base handled for job decode and watcher start/top

This commit is contained in:
Patrick Fic
2020-10-14 11:26:10 -07:00
parent 953ea832e2
commit e7614942e5
25 changed files with 285 additions and 189 deletions

View File

@@ -0,0 +1,23 @@
import { Alert } from "antd";
import React from "react";
import { connect } from "react-redux";
import { createStructuredSelector } from "reselect";
import {
selectWatcherError,
selectWatcherStatus,
} from "../../../redux/application/application.selectors";
const mapStateToProps = createStructuredSelector({
watcherStatus: selectWatcherStatus,
watcherError: selectWatcherError,
});
export function WatcherStatusAtom({ watcherStatus, watcherError }) {
return (
<div>
{watcherStatus}
{watcherError && <Alert message={watcherError} />}
</div>
);
}
export default connect(mapStateToProps, null)(WatcherStatusAtom);