Skip to content

Commit

Permalink
nav redirection after crate and cancel new cotract.js
Browse files Browse the repository at this point in the history
  • Loading branch information
FigueroaR committed Dec 16, 2021
1 parent 1ddb7a1 commit 318fedf
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/components/contract/NewContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,18 @@ function NewContract(props){
const [budget, setBudget] = useState("")
const [dateOfcompletion, setDateOfcompletion] = useState("")
const [employeesTotal, setEmployeesTotal] = useState("")
const [active, setActive] = useState(false)
const [pastDue, setPastDue] = useState(true)
const [active, setActive] = useState("No")
const [pastDue, setPastDue] = useState("Yes")

let onClickCancel = () => {
console.log("cancel")
//navigate("/")
}

let handleClick = () => {

navigate("/")
}

let handleSubmit = (e) => {
e.preventDefault()
props.postContract({contractName, contractManager, budget, dateOfcompletion, employeesTotal, active, pastDue})
navigate("/")
}

return(
Expand Down

0 comments on commit 318fedf

Please sign in to comment.