Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

feat: show pairing complete overlay in slideshow

httpjamesm5e574d588f1c
diff --git a/apps/cast/src/pages/slideshow.tsx b/apps/cast/src/pages/slideshow.tsx
index 5d01aab4be..a3c6eb18ff 100644
--- a/apps/cast/src/pages/slideshow.tsx
+++ b/apps/cast/src/pages/slideshow.tsx
@@ -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 />}
</>
);
}