Updated the profile of the Corporate user according to the client's instructions

This commit is contained in:
Tiago Ribeiro
2024-01-16 16:26:59 +00:00
parent c68e206aae
commit c5007a316f
5 changed files with 341 additions and 247 deletions

View File

@@ -12,3 +12,16 @@ export function dateSorter(a: any, b: any, direction: "asc" | "desc", key: strin
export function env(key: string) {
return (window as any).__ENV[key];
}
export const convertBase64 = (file: File) => {
return new Promise((resolve, reject) => {
const fileReader = new FileReader();
fileReader.readAsDataURL(file);
fileReader.onload = () => {
resolve(fileReader.result);
};
fileReader.onerror = (error) => {
reject(error);
};
});
};