Use
This commit is contained in:
parent
079bdbd4cd
commit
5e1fdd6565
2 changed files with 7 additions and 26 deletions
|
@ -1,22 +1,9 @@
|
|||
import { styled } from "@mui/material";
|
||||
import { FilledCircleCheck } from "./FilledCircleCheck";
|
||||
|
||||
export const PairedSuccessfullyOverlay: React.FC = () => {
|
||||
export const PairingComplete: React.FC = () => {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
position: "fixed",
|
||||
top: 0,
|
||||
right: 0,
|
||||
height: "100%",
|
||||
width: "100%",
|
||||
display: "flex",
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
zIndex: 100,
|
||||
backgroundColor: "black",
|
||||
}}
|
||||
>
|
||||
<PairingComplete_>
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
|
@ -42,19 +29,13 @@ export const PairedSuccessfullyOverlay: React.FC = () => {
|
|||
<br /> This should only take a few seconds.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</PairingComplete_>
|
||||
);
|
||||
};
|
||||
|
||||
export const PairingSuccessful_ = styled("div")`
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
const PairingComplete_ = styled("div")`
|
||||
display: flex;
|
||||
min-height: 100svh;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 100;
|
||||
background-color: black;
|
||||
`;
|
|
@ -1,5 +1,5 @@
|
|||
import log from "@/next/log";
|
||||
import { PairedSuccessfullyOverlay } from "components/PairedSuccessfullyOverlay";
|
||||
import { PairingComplete } from "components/PairingComplete";
|
||||
import { SlideView } from "components/Slide";
|
||||
import { useRouter } from "next/router";
|
||||
import { useEffect, useState } from "react";
|
||||
|
@ -48,7 +48,7 @@ export default function Slideshow() {
|
|||
|
||||
console.log("Rendering slideshow", { loading, imageURL, nextImageURL });
|
||||
|
||||
if (loading) return <PairedSuccessfullyOverlay />;
|
||||
if (loading) return <PairingComplete />;
|
||||
|
||||
return <SlideView url={imageURL} nextURL={nextImageURL} />;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue