Skip to content

Commit

Permalink
X2-6005 rename relative date range options (#238)
Browse files Browse the repository at this point in the history
* rename relative date range options

* resolve feedback
  • Loading branch information
SemenStruchev authored Jun 8, 2023
1 parent 5e4197a commit ea00ede
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/components/DatePicker/RelativeDateRange.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ import React from "react";
import { Button, Select } from "../..";

const options = {
YESTERDAY: "P1D:last",
TODAY: "P1D:current",
YESTERDAY: "P1D,yesterday",
TODAY: "P1D,today",

LAST_WEEK: "P1W:last",
TRAILING_WEEK: "P1W:trailing",
THIS_WEEK: "P1W:current",
LAST_WEEK: "P1W,last week",
TRAILING_WEEK: "P1W,-1 week",
THIS_WEEK: "P1W,this week",

LAST_MONTH: "P1M:last",
TRAILING_MONTH: "P1M:trailing",
THIS_MONTH: "P1M:current",
LAST_MONTH: "P1M,first day of last month",
TRAILING_MONTH: "P1M,-1 month",
THIS_MONTH: "P1M,first day of this month",

LAST_QUARTER: "P3M:last",
TRAILING_QUARTER: "P3M:trailing",
THIS_QUARTER: "P3M:current",
LAST_QUARTER: "P3M,first day of last quarter",
TRAILING_QUARTER: "P3M,-3 months",
THIS_QUARTER: "P3M,first day of this quarter",

LAST_YEAR: "P1Y:last",
TRAILING_YEAR: "P1Y:trailing",
THIS_YEAR: "P1Y:current",
LAST_YEAR: "P1Y,first day of January last year",
TRAILING_YEAR: "P1Y,-1 year",
THIS_YEAR: "P1Y,first day of this year",
};

export const dateRanges = {
Expand Down

0 comments on commit ea00ede

Please sign in to comment.