|
|
@ -19,6 +19,7 @@ const ViewProject = ({ openDialog, closeDialog, toggleDialog, projectCharter, pr |
|
|
|
const [projectSuccess, setProjectSuccess] = useState("") |
|
|
|
const [projectSuccess, setProjectSuccess] = useState("") |
|
|
|
const [participants, setParticipants] = useState("") |
|
|
|
const [participants, setParticipants] = useState("") |
|
|
|
const [budget, setBudget] = useState("") |
|
|
|
const [budget, setBudget] = useState("") |
|
|
|
|
|
|
|
const [currency, setCurrency] = useState("") |
|
|
|
const [testing, setTesting] = useState("") |
|
|
|
const [testing, setTesting] = useState("") |
|
|
|
const [milestone, setMilestone] = useState("") |
|
|
|
const [milestone, setMilestone] = useState("") |
|
|
|
const [potentialRisks, setPotentialRisks] = useState("") |
|
|
|
const [potentialRisks, setPotentialRisks] = useState("") |
|
|
@ -32,6 +33,7 @@ const ViewProject = ({ openDialog, closeDialog, toggleDialog, projectCharter, pr |
|
|
|
setProjectSuccess("") |
|
|
|
setProjectSuccess("") |
|
|
|
setParticipants([]) |
|
|
|
setParticipants([]) |
|
|
|
setBudget("") |
|
|
|
setBudget("") |
|
|
|
|
|
|
|
setCurrency("") |
|
|
|
setTesting("") |
|
|
|
setTesting("") |
|
|
|
setMilestone([]) |
|
|
|
setMilestone([]) |
|
|
|
setPotentialRisks("") |
|
|
|
setPotentialRisks("") |
|
|
@ -48,6 +50,7 @@ const ViewProject = ({ openDialog, closeDialog, toggleDialog, projectCharter, pr |
|
|
|
setBudget(projectCharter.rencana_biaya); |
|
|
|
setBudget(projectCharter.rencana_biaya); |
|
|
|
setPotentialRisks(projectCharter.potential_risk); |
|
|
|
setPotentialRisks(projectCharter.potential_risk); |
|
|
|
setTesting(projectCharter.testing_environment); |
|
|
|
setTesting(projectCharter.testing_environment); |
|
|
|
|
|
|
|
setCurrency(projectCharter.currency_symbol); |
|
|
|
} |
|
|
|
} |
|
|
|
}, [projectCharter]); |
|
|
|
}, [projectCharter]); |
|
|
|
|
|
|
|
|
|
|
@ -187,7 +190,7 @@ const ViewProject = ({ openDialog, closeDialog, toggleDialog, projectCharter, pr |
|
|
|
Budget:
|
|
|
|
Budget:
|
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td className='td-charter td-value plr-10'> |
|
|
|
<td className='td-charter td-value plr-10'> |
|
|
|
<div>Rp {formatThousand(budget)}</div> |
|
|
|
<div>{currency} {formatThousand(budget)}</div> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr className='tr-charter'> |
|
|
|
<tr className='tr-charter'> |
|
|
@ -265,4 +268,4 @@ const ViewProject = ({ openDialog, closeDialog, toggleDialog, projectCharter, pr |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export default ViewProject; |
|
|
|
export default ViewProject; |
|
|
|