mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 15:25:46 +00:00
refactor(FE): Update toast message for Project Flock approval/rejection
This commit is contained in:
@@ -271,7 +271,11 @@ const ProjectFlockTable = ({ refresh }: { refresh?: () => void }) => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (isResponseSuccess(approveProjectFlockRes)) {
|
if (isResponseSuccess(approveProjectFlockRes)) {
|
||||||
toast.success('Project Flock berhasil di-approve!');
|
const successMessage =
|
||||||
|
approvalAction === 'APPROVED'
|
||||||
|
? 'Project Flock berhasil di-approve!'
|
||||||
|
: 'Project Flock berhasil di-reject!';
|
||||||
|
toast.success(successMessage);
|
||||||
confirmModal.closeModal();
|
confirmModal.closeModal();
|
||||||
}
|
}
|
||||||
if (isResponseError(approveProjectFlockRes)) {
|
if (isResponseError(approveProjectFlockRes)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user