pass publicCollectionGalleryContext directly as publicCollectProps

This commit is contained in:
Abhinav 2022-12-12 17:15:27 +05:30
parent 3fe80aa368
commit fa18568074

View file

@ -145,16 +145,7 @@ export default function Uploader(props: Props) {
setHasLivePhotos,
},
props.setFiles,
{
accessedThroughSharedURL:
publicCollectionGalleryContext.accessedThroughSharedURL,
...(publicCollectionGalleryContext.passwordToken && {
passwordToken: publicCollectionGalleryContext.passwordToken,
}),
token: publicCollectionGalleryContext.accessedThroughSharedURL
? publicCollectionGalleryContext.token
: galleryContext.token,
}
publicCollectionGalleryContext
);
if (isElectron() && ImportService.checkAllElectronAPIsExists()) {