feat: only show pairing complete on slideshow page
This commit is contained in:
parent
57fefd8a55
commit
a4a0453f9a
|
@ -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 />}
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue