File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed
src/modules/components/OverviewComponent Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 3030 "react-app-rewired" : " ^2.2.1" ,
3131 "react-bootstrap" : " ^2.1.2" ,
3232 "react-chartjs-2" : " ^5.2.0" ,
33+ "react-datepicker" : " ^6.1.0" ,
3334 "react-dom" : " ^17.0.2" ,
3435 "react-redux" : " ^7.2.6" ,
3536 "react-router" : " 6.3.0" ,
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ const NewRunsComponent = () => {
200200 saveRowData = { saveRowData }
201201 rowActions = { rowActions }
202202 item = { item }
203- onDateSelect = { ( _event , str ) =>
203+ onDateSelect = { ( str ) =>
204204 updateTblValue (
205205 str ,
206206 SERVER_DELETION_KEY ,
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ const SavedRunsComponent = () => {
204204 updateTblValue ( val , NAME_KEY , item . resource_id )
205205 }
206206 toggleEdit = { toggleEdit }
207- onDateSelect = { ( _event , str ) =>
207+ onDateSelect = { ( str ) =>
208208 updateTblValue (
209209 str ,
210210 SERVER_DELETION_KEY ,
Original file line number Diff line number Diff line change 11import "./index.less" ;
2+ import "react-datepicker/dist/react-datepicker.css" ;
23
34import * as CONSTANTS from "assets/constants/overviewConstants" ;
45
@@ -13,7 +14,6 @@ import {
1314} from "@patternfly/react-table" ;
1415import {
1516 Button ,
16- DatePicker ,
1717 Dropdown ,
1818 DropdownItem ,
1919 DropdownToggle ,
@@ -41,6 +41,7 @@ import {
4141} from "actions/overviewActions" ;
4242import { useDispatch , useSelector } from "react-redux" ;
4343
44+ import DatePicker from "react-datepicker" ;
4445import MetadataTreeView from "./MetadataTreeComponent" ;
4546import { formatDateTime } from "utils/dateFunctions" ;
4647import { setRelayModalState } from "actions/relayActions" ;
@@ -401,7 +402,10 @@ export const SavedRunsRow = (props) => {
401402
402403export const SelectDateComponent = ( props ) => (
403404 < div className = "date-picker-container" >
404- < DatePicker value = { props . value } onChange = { props . onDateSelect } />
405+ < DatePicker
406+ selected = { props . value }
407+ onChange = { ( date ) => props . onDateSelect ( date ) }
408+ />
405409 </ div >
406410) ;
407411
You can’t perform that action at this time.
0 commit comments