Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expiration date update #3597

Merged
merged 2 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"react-app-rewired": "^2.2.1",
"react-bootstrap": "^2.1.2",
"react-chartjs-2": "^5.2.0",
"react-datepicker": "^6.1.0",
"react-dom": "^17.0.2",
"react-redux": "^7.2.6",
"react-router": "6.3.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ const NewRunsComponent = () => {
saveRowData={saveRowData}
rowActions={rowActions}
item={item}
onDateSelect={(_event, str) =>
onDateSelect={(str) =>
updateTblValue(
str,
SERVER_DELETION_KEY,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ const SavedRunsComponent = () => {
updateTblValue(val, NAME_KEY, item.resource_id)
}
toggleEdit={toggleEdit}
onDateSelect={(_event, str) =>
onDateSelect={(str) =>
updateTblValue(
webbnh marked this conversation as resolved.
Show resolved Hide resolved
str,
SERVER_DELETION_KEY,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "./index.less";
import "react-datepicker/dist/react-datepicker.css";

import * as CONSTANTS from "assets/constants/overviewConstants";

Expand All @@ -13,7 +14,6 @@ import {
} from "@patternfly/react-table";
import {
Button,
DatePicker,
Dropdown,
DropdownItem,
DropdownToggle,
Expand Down Expand Up @@ -41,6 +41,7 @@ import {
} from "actions/overviewActions";
import { useDispatch, useSelector } from "react-redux";

import DatePicker from "react-datepicker";
import MetadataTreeView from "./MetadataTreeComponent";
import { formatDateTime } from "utils/dateFunctions";
import { setRelayModalState } from "actions/relayActions";
Expand Down Expand Up @@ -401,7 +402,10 @@ export const SavedRunsRow = (props) => {

export const SelectDateComponent = (props) => (
<div className="date-picker-container">
<DatePicker value={props.value} onChange={props.onDateSelect} />
<DatePicker
selected={props.value}
onChange={(date) => props.onDateSelect(date)}
/>
</div>
);

Expand Down
Loading