Skip to content

Commit 4f62f2d

Browse files
committed
dayjs removed
1 parent 6c9013b commit 4f62f2d

File tree

3 files changed

+1
-19
lines changed

3 files changed

+1
-19
lines changed

package-lock.json

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
"@types/react-dates": "^21.8.6",
9797
"react-dates": "^21.8.0",
9898
"sass": "^1.69.7",
99-
"tslib": "^2.4.1",
100-
"dayjs": "^1.11.8"
99+
"tslib": "^2.4.1"
101100
}
102101
}

src/Shared/Components/DatePicker/utils.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
import dayjs from 'dayjs'
1817
import { components } from 'react-select'
1918
import { OptionType } from '../../../Common'
2019
import { MONTHLY_DATES_CONFIG, TIME_OPTIONS_CONFIG } from './constants'
@@ -102,11 +101,6 @@ export const DEFAULT_TIME_OPTIONS: OptionType[] = Object.entries(TIME_OPTIONS_CO
102101
value,
103102
}))
104103

105-
/**
106-
* @returns True if the date is before today's date
107-
*/
108-
export const disablePreviousDates = (current: dayjs.Dayjs) => current?.isBefore(dayjs(), 'date')
109-
110104
const formatTimePart = (value: number) => (value < 10 ? `0${value}` : value)
111105
/**
112106
* Get the time value from the date object in the format: `hh:mm:ss`

0 commit comments

Comments
 (0)