BOD-16 Added pages + routing for courtesy cars

This commit is contained in:
Patrick Fic
2020-03-30 15:32:39 -07:00
parent 1249fd5b2c
commit 791a6dd4f2
25 changed files with 1362 additions and 17 deletions

View File

@@ -35,15 +35,17 @@ function JobsCreateContainer({ bodyshop }) {
useEffect(() => {
if (!!state.owner.selectedid) {
console.log("Loading Selected Owner ID");
loadOwner({
variables: { id: state.owner.selectedid }
});
}
}, [state.owner.selectedid, loadOwner]);
useEffect(() => {
document.title = t("titles.jobs-create");
}, [t]);
const runInsertJob = job => {
console.log("Job To Save", job);
insertJob({ variables: { job: job } })
.then(resp => {
setState({
@@ -63,8 +65,6 @@ function JobsCreateContainer({ bodyshop }) {
};
const handleFinish = values => {
console.log("Form Values", values);
console.log("Progress State", state);
let job = Object.assign(
{},
values,