Basic reporting completed.

This commit is contained in:
Patrick Fic
2020-10-20 17:20:16 -07:00
parent 329c975019
commit 013f0b091f
13 changed files with 76 additions and 38 deletions

View File

@@ -3,6 +3,7 @@ import { DatePicker, message, Spin } from "antd";
import moment from "moment";
import React, { useState } from "react";
import { UPDATE_JOB } from "../../../graphql/jobs.queries";
import { DateFormat } from "../../../util/constants";
export default function CloseDateDisplayMolecule({ jobId, close_date }) {
const [editMode, setEditMode] = useState(false);
@@ -38,7 +39,7 @@ export default function CloseDateDisplayMolecule({ jobId, close_date }) {
return (
<div style={{ cursor: "pointer" }} onClick={() => setEditMode(true)}>
{value && value.isValid() ? value.format("MM/DD/yyyy") : "No date set"}
{value && value.isValid() ? value.format(DateFormat) : "No date set"}
</div>
);
}