feat: only show pairing complete on slideshow page

This commit is contained in:
httpjamesm 2023-11-23 17:47:37 -05:00
parent 57fefd8a55
commit a4a0453f9a
No known key found for this signature in database

View file

@ -9,7 +9,6 @@ import {
import { useRouter } from 'next/router'; import { useRouter } from 'next/router';
import { SESSION_KEYS, setKey } from '@ente/shared/storage/sessionStorage'; import { SESSION_KEYS, setKey } from '@ente/shared/storage/sessionStorage';
import TimerBar from 'components/TimerBar'; import TimerBar from 'components/TimerBar';
import PairedSuccessfullyOverlay from 'components/PairedSuccessfullyOverlay';
import LargeType from 'components/LargeType'; import LargeType from 'components/LargeType';
// Function to generate cryptographically secure digits // Function to generate cryptographically secure digits
@ -40,9 +39,6 @@ export default function PairingMode() {
const [borderWidthPercentage, setBorderWidthPercentage] = useState(100); const [borderWidthPercentage, setBorderWidthPercentage] = useState(100);
const [showPairingCompleteOverlay, setShowPairingCompleteOverlay] =
useState(false);
useEffect(() => { useEffect(() => {
init(); init();
const interval = setInterval(() => { const interval = setInterval(() => {
@ -134,8 +130,6 @@ export default function PairingMode() {
storePayloadLocally(data); storePayloadLocally(data);
setShowPairingCompleteOverlay(true);
router.push('/slideshow'); router.push('/slideshow');
}, 1000); }, 1000);
@ -221,7 +215,6 @@ export default function PairingMode() {
</p> </p>
</div> </div>
</div> </div>
{showPairingCompleteOverlay && <PairedSuccessfullyOverlay />}
</> </>
); );
} }