Updated contract detail screen to have unsaved changes indicator BOD-127

This commit is contained in:
Patrick Fic
2020-07-13 16:53:10 -07:00
parent 878e36ceec
commit 0217f118d6
5 changed files with 46 additions and 38 deletions

View File

@@ -10,7 +10,6 @@ export default function FormsFieldChanged({ form }) {
const handleReset = () => {
form.resetFields();
};
console.log("form.isFieldsTouched(true)", form.isFieldsTouched([], true));
const loc = useLocation();
return (
@@ -31,7 +30,7 @@ export default function FormsFieldChanged({ form }) {
type="warning"
message={
<div>
<span>{t("general.messages.unsavedchanges")}</span>
<span>{t("general.messages.unsavedchanges")} </span>
<span
onClick={handleReset}
style={{