mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 23:35:42 +00:00
style: show the profile and the review ont the settings
This commit is contained in:
@@ -231,11 +231,18 @@ const useAuth = () => {
|
||||
}
|
||||
};
|
||||
|
||||
/** Resubmit a rejected operational role for approval, then refresh. */
|
||||
/**
|
||||
* Resubmit a rejected operational role for approval — optionally replacing its
|
||||
* business license first (the common reason a role is rejected) — then refresh.
|
||||
*/
|
||||
const reapplyProfile = async (
|
||||
profileId: string,
|
||||
licenseFiles: File[] = [],
|
||||
): Promise<Result<void>> => {
|
||||
try {
|
||||
if (licenseFiles.length > 0) {
|
||||
await companiesService.uploadProfileLicense(profileId, licenseFiles);
|
||||
}
|
||||
await api.companies.reapplyProfile.call({ profileId });
|
||||
await invalidateScopedData();
|
||||
return { success: true, data: undefined };
|
||||
|
||||
Reference in New Issue
Block a user