Skip to content

armgit / ente

Public Imported from GitHub
0

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

T

Manav Rathief5856abe4f6
diff --git a/web/apps/cast/src/pages/index.tsx b/web/apps/cast/src/pages/index.tsx
index df91363d87..7ff6cf16e2 100644
--- a/web/apps/cast/src/pages/index.tsx
+++ b/web/apps/cast/src/pages/index.tsx
@@ -8,7 +8,7 @@ import { readCastData, storeCastData } from "services/cast-data";
import { getCastPayload, register } from "services/pair";
import { advertiseOnChromecast } from "../services/chromecast-receiver";
-export default function Index() {
+const Page: React.FC = () => {
const [publicKey, setPublicKey] = useState<string | undefined>();
const [privateKey, setPrivateKey] = useState<string | undefined>();
const [pairingCode, setPairingCode] = useState<string | undefined>();
@@ -77,7 +77,9 @@ export default function Index() {
</Typography>
</Container>
);
-}
+};
+
+export default Page;
const Container = styled(Stack)`
height: 100%;
diff --git a/web/apps/cast/src/pages/slideshow.tsx b/web/apps/cast/src/pages/slideshow.tsx
index 8f17a38abb..8b4e8b6505 100644
--- a/web/apps/cast/src/pages/slideshow.tsx
+++ b/web/apps/cast/src/pages/slideshow.tsx
@@ -7,7 +7,7 @@ import { readCastData } from "services/cast-data";
import { isChromecast } from "services/chromecast-receiver";
import { imageURLGenerator } from "services/render";
-export default function Slideshow() {
+const Page: React.FC = () => {
const [isEmpty, setIsEmpty] = useState(false);
const [imageURL, setImageURL] = useState<string | undefined>();
@@ -55,7 +55,9 @@ export default function Slideshow() {
) : (
<SlideView url={imageURL} />
);
-}
+};
+
+export default Page;
const PairingComplete: React.FC = () => {
return (