Browse Source

Merge pull request 'Fix import nik' (#48) from dev-wahyu into staging

Reviewed-on: ordo/adw-frontend#48
Reviewed-by: ibnu <ibnu@mail.com>
pull/2/head
ibnu 1 year ago
parent
commit
b6fc4e37a2
  1. 2
      src/views/SimproV2/CreatedProyek/ImportActivity/index.js
  2. 7
      src/views/SimproV2/CreatedProyek/ViewProject.js

2
src/views/SimproV2/CreatedProyek/ImportActivity/index.js

@ -199,6 +199,8 @@ const ImportActivity = ({ params }) => {
let index = dataUserToProject.findIndex((x) => columnData == x.join_first_ktp_number);
if(index >= 0) {
columnData = dataUserToProject[index].join_first_ktp_number;
} else {
columnData = '';
}
}
}

7
src/views/SimproV2/CreatedProyek/ViewProject.js

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

Loading…
Cancel
Save