Merge branch 'dev' into staging
This commit is contained in:
commit
482582288c
@ -65,6 +65,18 @@ const mimeTypesAccepted: { [key: string]: IMimeTypes } = {
|
||||
extension: "xls",
|
||||
size: 104857600, // 100MB
|
||||
},
|
||||
"application/msword": {
|
||||
extension: "doc",
|
||||
size: 104857600, // 100MB
|
||||
},
|
||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": {
|
||||
extension: "docx",
|
||||
size: 104857600, // 100MB
|
||||
},
|
||||
"text/plain": {
|
||||
extension: "txt",
|
||||
size: 104857600, // 100MB
|
||||
},
|
||||
};
|
||||
|
||||
type IDocumentFileBase = {
|
||||
|
@ -71,33 +71,17 @@ class ViewDocumentsNotaryClass extends BasePage<IPropsClass, IState> {
|
||||
</div>
|
||||
)}
|
||||
<div className={classes["file-container"]}>
|
||||
{this.state.selectedFile.mimetype !== "text/csv" &&
|
||||
this.state.selectedFile.mimetype !==
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" &&
|
||||
this.state.selectedFile.mimetype !== "application/vnd.ms-excel" && (
|
||||
<FilePreview
|
||||
href={this.state.fileBlob ? URL.createObjectURL(this.state.fileBlob) : ""}
|
||||
fileName={this.state.selectedFile.file_name}
|
||||
key={this.state.selectedFile.uid}
|
||||
/>
|
||||
)}
|
||||
{this.state.selectedFile.mimetype === "text/csv" && (
|
||||
<div className={classes["unsuported-format"]}>
|
||||
<Typography typo={ETypo.TEXT_MD_REGULAR} color={ETypoColor.COLOR_GENERIC_BLACK}>
|
||||
L'affichage de ce format de fichier n'est pas supporté.
|
||||
</Typography>
|
||||
</div>
|
||||
)}
|
||||
{this.state.selectedFile.mimetype ===
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" && (
|
||||
<div className={classes["unsuported-format"]}>
|
||||
<Typography typo={ETypo.TEXT_MD_REGULAR} color={ETypoColor.COLOR_GENERIC_BLACK}>
|
||||
L'affichage de ce format de fichier n'est pas supporté.
|
||||
</Typography>
|
||||
</div>
|
||||
)}
|
||||
{this.state.selectedFile.mimetype === "application/vnd.ms-excel" && (
|
||||
<div className={classes["unsuported-format"]}>
|
||||
{this.state.selectedFile.mimetype === "application/pdf" ||
|
||||
this.state.selectedFile.mimetype === "image/jpeg" ||
|
||||
this.state.selectedFile.mimetype === "image/png" ||
|
||||
this.state.selectedFile.mimetype === "image/jpg" ? (
|
||||
<FilePreview
|
||||
href={this.state.fileBlob ? URL.createObjectURL(this.state.fileBlob) : ""}
|
||||
fileName={this.state.selectedFile.file_name}
|
||||
key={this.state.selectedFile.uid}
|
||||
/>
|
||||
) : (
|
||||
<div className={classes["unsupported-format"]}>
|
||||
<Typography typo={ETypo.TEXT_MD_REGULAR} color={ETypoColor.COLOR_GENERIC_BLACK}>
|
||||
L'affichage de ce format de fichier n'est pas supporté.
|
||||
</Typography>
|
||||
@ -144,8 +128,6 @@ class ViewDocumentsNotaryClass extends BasePage<IPropsClass, IState> {
|
||||
folder: true,
|
||||
depositor: true,
|
||||
});
|
||||
console.log(documentNotary);
|
||||
|
||||
this.setState(
|
||||
{
|
||||
documentNotary,
|
||||
|
@ -189,7 +189,7 @@ export default function SendDocuments() {
|
||||
<DragAndDrop
|
||||
name="files"
|
||||
title="Glisser ou déposer ou"
|
||||
description="Formats acceptés : PDF, JPG, PNG, CSV, XLSX Taille maximale : 100 Mo"
|
||||
description="Formats acceptés : PDF, JPG, PNG, CSV, XLSX, doc, dox, txt Taille maximale : 100 Mo"
|
||||
onChange={handleFileChange}
|
||||
/>
|
||||
|
||||
|
@ -89,33 +89,17 @@ class ViewDocumentsClass extends BasePage<IPropsClass, IState> {
|
||||
</div>
|
||||
)}
|
||||
<div className={classes["file-container"]}>
|
||||
{this.state.selectedFile.mimetype !== "text/csv" &&
|
||||
this.state.selectedFile.mimetype !==
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" &&
|
||||
this.state.selectedFile.mimetype !== "application/vnd.ms-excel" && (
|
||||
<FilePreview
|
||||
href={this.state.fileBlob ? URL.createObjectURL(this.state.fileBlob) : ""}
|
||||
fileName={this.state.selectedFile.file_name}
|
||||
key={this.state.selectedFile.uid}
|
||||
/>
|
||||
)}
|
||||
{this.state.selectedFile.mimetype === "text/csv" && (
|
||||
<div className={classes["unsuported-format"]}>
|
||||
<Typography typo={ETypo.TEXT_MD_REGULAR} color={ETypoColor.COLOR_GENERIC_BLACK}>
|
||||
L'affichage de ce format de fichier n'est pas supporté.
|
||||
</Typography>
|
||||
</div>
|
||||
)}
|
||||
{this.state.selectedFile.mimetype ===
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" && (
|
||||
<div className={classes["unsuported-format"]}>
|
||||
<Typography typo={ETypo.TEXT_MD_REGULAR} color={ETypoColor.COLOR_GENERIC_BLACK}>
|
||||
L'affichage de ce format de fichier n'est pas supporté.
|
||||
</Typography>
|
||||
</div>
|
||||
)}
|
||||
{this.state.selectedFile.mimetype === "application/vnd.ms-excel" && (
|
||||
<div className={classes["unsuported-format"]}>
|
||||
{this.state.selectedFile.mimetype === "application/pdf" ||
|
||||
this.state.selectedFile.mimetype === "image/jpeg" ||
|
||||
this.state.selectedFile.mimetype === "image/png" ||
|
||||
this.state.selectedFile.mimetype === "image/jpg" ? (
|
||||
<FilePreview
|
||||
href={this.state.fileBlob ? URL.createObjectURL(this.state.fileBlob) : ""}
|
||||
fileName={this.state.selectedFile.file_name}
|
||||
key={this.state.selectedFile.uid}
|
||||
/>
|
||||
) : (
|
||||
<div className={classes["unsupported-format"]}>
|
||||
<Typography typo={ETypo.TEXT_MD_REGULAR} color={ETypoColor.COLOR_GENERIC_BLACK}>
|
||||
L'affichage de ce format de fichier n'est pas supporté.
|
||||
</Typography>
|
||||
|
Loading…
x
Reference in New Issue
Block a user