feat: show pairing complete overlay in slideshow

This commit is contained in:
httpjamesm 2023-11-23 17:37:32 -05:00
parent 19b223c996
commit 5e574d588f
No known key found for this signature in database

View file

@ -1,4 +1,5 @@
// import { Inter } from 'next/font/google';
import PairedSuccessfullyOverlay from 'components/PairedSuccessfullyOverlay';
import { useEffect, useState } from 'react';
import { syncCollections } from 'services/collectionService';
import { syncFiles } from 'services/fileService';
@ -12,6 +13,8 @@ export default function Slideshow() {
undefined
);
const [loading, setLoading] = useState(true);
const init = async () => {
const collections = await syncCollections();
@ -62,6 +65,8 @@ export default function Slideshow() {
const url = URL.createObjectURL(blob);
setRenderableFileURL(url);
setLoading(false);
};
useEffect(() => {
@ -89,6 +94,7 @@ export default function Slideshow() {
}}
/>
</div>
{loading && <PairedSuccessfullyOverlay />}
</>
);
}