mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +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)) {
|
||||
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();
|
||||
}
|
||||
if (isResponseError(approveProjectFlockRes)) {
|
||||
|
||||
Reference in New Issue
Block a user