Added fundamentals for v2 rule set intro.

This commit is contained in:
Patrick Fic
2022-11-23 10:50:19 -08:00
parent 22814bf0a0
commit 0afa584771
16 changed files with 283 additions and 215 deletions

View File

@@ -34,7 +34,7 @@ export function ReportingDatesMolecule({ queryReportingData }) {
rules={[{ type: "array", required: true }]}
>
<DatePicker.RangePicker
format="YYYY-MM-DD"
format="MM/DD/YYYY"
ranges={{
Today: [moment(), moment()],
"Last 14 days": [moment().subtract(14, "days"), moment()],
@@ -45,6 +45,7 @@ export function ReportingDatesMolecule({ queryReportingData }) {
moment().startOf("month").subtract(1, "month"),
moment().startOf("month").subtract(1, "month").endOf("month"),
],
"This Month": [
moment().startOf("month"),
moment().endOf("month"),
@@ -64,6 +65,10 @@ export function ReportingDatesMolecule({ queryReportingData }) {
.add(1, "quarter")
.subtract(1, "day"),
],
"Last 3 Months": [
moment().startOf("month").subtract(3, "month"),
moment().startOf("month").subtract(1, "month").endOf("month"),
],
}}
/>
</Form.Item>