- added re-admit btn and functionality;
This commit is contained in:
@@ -65,18 +65,20 @@ const SoccorsoResendEmails = ({ emailsData = [], setDataEmailsSoccorso }) => {
|
||||
setIsResendingRequest(false);
|
||||
}
|
||||
|
||||
return(
|
||||
['ROLE_SUPER_ADMIN', 'ROLE_INSTRUCTOR_MANAGER'].includes(role) && filtered.length > 0 ? <>
|
||||
<Toast ref={toast}/>
|
||||
{filtered
|
||||
.map(o => <Button
|
||||
severity="warning"
|
||||
type="button"
|
||||
disabled={isResendingRequest}
|
||||
onClick={() => resendEmail(o)}
|
||||
label={pathOr('Re-inivia email', ['emailScenario'], resendEmailLabelsByType)}
|
||||
icon="pi pi-send" iconPos="right"/>)}
|
||||
</> : null
|
||||
return (
|
||||
['ROLE_SUPER_ADMIN', 'ROLE_INSTRUCTOR_MANAGER'].includes(role) && filtered.length > 0
|
||||
? <>
|
||||
<Toast ref={toast}/>
|
||||
{filtered
|
||||
.map(o => <Button
|
||||
key={o.userActionId}
|
||||
severity="warning"
|
||||
type="button"
|
||||
disabled={isResendingRequest}
|
||||
onClick={() => resendEmail(o)}
|
||||
label={pathOr('Re-inivia email', ['emailScenario'], resendEmailLabelsByType)}
|
||||
icon="pi pi-send" iconPos="right"/>)}
|
||||
</> : null
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user