+
+
Select the folder:
+ {selectedFolder &&
+
+
{
+ updateLoading(undefined);
+ updateSelectedFolder(selectedFolder.parentFolder);
+ selectedFolder.parentFolder ?
+ setFolders(await props.graphHelper.getSubFolder(selectedFolder.parentFolder)) :
+ setFolders(await props.graphHelper.getOneDriveFolders());
+ }}
+ >
+ {selectedFolder !== null && selectedFolder.parentFolder ? selectedFolder.parentFolder.name : 'OneDrive'}
+
+
+ {selectedFolder ? `> ${selectedFolder.name}` : ''}
+
+
+ }
+ {folders.map((folder, i) => {
+ return (
+
+
{ updateLoading(undefined); updateSelectedFolder(folder); setFolders(await props.graphHelper.getSubFolder(folder)); }}
+ >
+ {folder.name}
+
+
+ );
+ })}
+
+
Select the attachments:
+
+ {props.mail.attachments.map((attachment) => {
+ return (
+
+ { updateLoading(undefined); updateAttachments(ev, checked, attachment); }}
+ styles={{ checkbox: { width: '15px', height: '15px', marginTop: '3px' } }}
+ />
+
+ );
+ })}
+
+
+ {loading === false &&
+
+ {status === successMessage &&
+
+
+
+ }
+
+ {status}
+
+
+ }
+ {loading === true &&
+
+ }
+
+
+
+ }
+ {props.mail && props.mail.attachments.length === 0 &&
+