Basic reporting completed.

This commit is contained in:
Patrick Fic
2020-10-20 17:20:16 -07:00
parent 329c975019
commit 013f0b091f
13 changed files with 76 additions and 38 deletions

View File

@@ -0,0 +1,22 @@
import { Typography } from "antd";
import React from "react";
import { connect } from "react-redux";
import { createStructuredSelector } from "reselect";
import { selectDates } from "../../../redux/reporting/reporting.selectors";
import moment from "moment";
import { DateFormat } from "../../../util/constants";
const mapStateToProps = createStructuredSelector({
dates: selectDates,
});
export function ReportingTitleAtom({ dates }) {
return (
<Typography.Title level={2}>
{`RPS Report for Period from ${moment(dates.startDate).format(
DateFormat
)} to ${moment(dates.endDate).format(DateFormat)}`}
</Typography.Title>
);
}
export default connect(mapStateToProps, null)(ReportingTitleAtom);