Renamed some owner fields to follow CIECA standard. Work on Owner Select modal.

This commit is contained in:
Patrick Fic
2020-01-29 09:52:02 -08:00
parent 1cdedac0a8
commit 7d6969b186
49 changed files with 691 additions and 135 deletions

View File

@@ -0,0 +1,4 @@
import React from "react";
export default function OwnerFindModalComponent() {
return <div>Modal Componnentasdasd</div>;
}

View File

@@ -0,0 +1,23 @@
import React from "react";
import { Modal } from "antd";
import OwnerFindModalComponent from "./owner-find-modal.component";
import LoadingSpinner from "../loading-spinner/loading-spinner.component";
import AlertComponent from "../alert/alert.component";
import { json } from "body-parser";
export default function OwnerFindModalContainer({
loading,
error,
owner,
...modalProps
}) {
//use owner object to run query and find what possible owners there are.
return (
<Modal {...modalProps}>
{loading ? <LoadingSpinner /> : null}
{error ? <AlertComponent message={error.message} type="error" /> : null}
{owner ? <OwnerFindModalComponent /> : null}
{owner ? JSON.stringify(owner) : null}
</Modal>
);
}