minor fixes

This commit is contained in:
Abhinav-grd 2021-03-29 16:59:01 +05:30
parent 173deab5da
commit 94903a2009
3 changed files with 8 additions and 8 deletions

View file

@ -56,7 +56,7 @@ export default function Sidebar(props: Props) {
}
function exportFiles() {
if (isElectron()) {
exportService.selectDirectory();
exportService.exportFiles(props.files);
} else {
setMessageModalView(true);
}

View file

@ -404,7 +404,7 @@ export default function Gallery(props: Props) {
setBannerErrorCode={setBannerErrorCode}
acceptedFiles={props.acceptedFiles}
/>
<Sidebar />
<Sidebar files={data} />
<UploadButton openFileUploader={props.openFileUploader} />
{!isFirstLoad && data.length == 0 ? (
<Jumbotron>
@ -496,7 +496,7 @@ export default function Gallery(props: Props) {
<List
itemSize={(index) =>
timeStampList[index].itemType ===
ITEM_TYPE.TIME
ITEM_TYPE.TIME
? DATE_CONTAINER_HEIGHT
: IMAGE_CONTAINER_HEIGHT
}
@ -513,14 +513,14 @@ export default function Gallery(props: Props) {
columns={
timeStampList[index]
.itemType ===
ITEM_TYPE.TIME
ITEM_TYPE.TIME
? 1
: columns
}
>
{timeStampList[index]
.itemType ===
ITEM_TYPE.TIME ? (
ITEM_TYPE.TIME ? (
<DateContainer>
{
timeStampList[
@ -539,7 +539,7 @@ export default function Gallery(props: Props) {
index
]
.itemStartIndex +
idx
idx
);
}
)

View file

@ -96,8 +96,8 @@ class DownloadManager {
decryptedBlob = await this.convertHEIC2JPEG(decryptedBlob);
}
return new ReadableStream({
start(controller: ReadableStreamDefaultController) {
controller.enqueue(decryptedBlob);
async start(controller: ReadableStreamDefaultController) {
controller.enqueue(await decryptedBlob.arrayBuffer());
controller.close();
},
});