- add additional date picker presets in development
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -24,4 +24,13 @@ const range = {
|
|||||||
],
|
],
|
||||||
"Last 90 Days": [moment().add(-90, "days"), moment()],
|
"Last 90 Days": [moment().add(-90, "days"), moment()],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// We are development, lets get crazy
|
||||||
|
if (process.env.NODE_ENV === "development") {
|
||||||
|
range["Last year"] = [
|
||||||
|
moment().subtract(1, "year"),
|
||||||
|
moment(),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
export default range;
|
export default range;
|
||||||
|
|||||||
Reference in New Issue
Block a user