Change opencost plugin to use @date-io/luxon instead of @date-io/date-fns
Signed-off-by: Neal Ormsbee <neal.ormsbee@gmail.com>
This commit is contained in:
committed by
Fredrik Adelöw
parent
ff83a7f394
commit
ef6eeff534
@@ -25,7 +25,7 @@
|
||||
"@backstage/core-components": "workspace:^",
|
||||
"@backstage/core-plugin-api": "workspace:^",
|
||||
"@backstage/theme": "workspace:^",
|
||||
"@date-io/date-fns": "^2.16.0",
|
||||
"@date-io/luxon": "1.x",
|
||||
"@material-ui/core": "^4.9.13",
|
||||
"@material-ui/icons": "^4.9.1",
|
||||
"@material-ui/lab": "^4.0.0-alpha.60",
|
||||
|
||||
@@ -16,13 +16,13 @@
|
||||
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { makeStyles } from '@material-ui/styles';
|
||||
import { endOfDay, startOfDay } from 'date-fns';
|
||||
import { endOfDay, startOfDay } from '@date-io/luxon';
|
||||
import {
|
||||
MuiPickersUtilsProvider,
|
||||
KeyboardDatePicker,
|
||||
} from '@material-ui/pickers';
|
||||
import Button from '@material-ui/core/Button';
|
||||
import DateFnsUtils from '@date-io/date-fns';
|
||||
import LuxonUtils from '@date-io/luxon';
|
||||
import FormControl from '@material-ui/core/FormControl';
|
||||
import Link from '@material-ui/core/Link';
|
||||
import Popover from '@material-ui/core/Popover';
|
||||
@@ -141,7 +141,7 @@ const SelectWindow = ({ windowOptions, window, setWindow }) => {
|
||||
>
|
||||
<div className={classes.dateContainer}>
|
||||
<div className={classes.dateContainerColumn}>
|
||||
<MuiPickersUtilsProvider utils={DateFnsUtils}>
|
||||
<MuiPickersUtilsProvider utils={LuxonUtils}>
|
||||
<KeyboardDatePicker
|
||||
style={{ width: '144px' }}
|
||||
autoOk
|
||||
|
||||
Reference in New Issue
Block a user