From ea00ede8742cd1d2fb97959b98c35dd26710d1c6 Mon Sep 17 00:00:00 2001 From: SemenStruchev <125129104+SemenStruchev@users.noreply.github.com> Date: Thu, 8 Jun 2023 13:57:13 +0300 Subject: [PATCH] X2-6005 rename relative date range options (#238) * rename relative date range options * resolve feedback --- .../DatePicker/RelativeDateRange.jsx | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/components/DatePicker/RelativeDateRange.jsx b/src/components/DatePicker/RelativeDateRange.jsx index bd7ff1e39..1fa660696 100644 --- a/src/components/DatePicker/RelativeDateRange.jsx +++ b/src/components/DatePicker/RelativeDateRange.jsx @@ -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 = {