@@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react';
3import ActivateView from './ActivateView';
3import ActivateView from './ActivateView';
4import { FadeableActivateHeader as ActivateHeader } from './ActivateHeader';
4import { FadeableActivateHeader as ActivateHeader } from './ActivateHeader';
5−import { MasterKey } from './MasterKey';
5+import { FadeableMasterKey as MasterKey } from './MasterKey';
6import { Box, Icon } from '@tlon/indigo-react';
6import { Box, Icon } from '@tlon/indigo-react';
7import { FadeableActivateParagraph as ActivateParagraph } from './ActivateParagraph';
7import { FadeableActivateParagraph as ActivateParagraph } from './ActivateParagraph';
8import { FadeableActivateSteps as ActivateSteps } from './ActivateSteps';
8import { FadeableActivateSteps as ActivateSteps } from './ActivateSteps';
@@ -17,6 +17,7 @@ const MasterKeyReveal = () => {
17 const { setIsIn } = useActivateFlow();
17 const { setIsIn } = useActivateFlow();
18 const { push, names } = useLocalRouter();
18 const { push, names } = useLocalRouter();
19 const [triggerAnimation, setTriggerAnimation] = useState<boolean>(false);
19 const [triggerAnimation, setTriggerAnimation] = useState<boolean>(false);
20+ const [fadeOutKey, setFadeOutKey] = useState<boolean>(false);
21 const goToDownload = useCallback(() => {
22 const goToDownload = useCallback(() => {
22 push(names.DOWNLOAD);
23 push(names.DOWNLOAD);
@@ -25,6 +26,7 @@ const MasterKeyReveal = () => {
25 const onRevealClick = useCallback(async () => {
26 const onRevealClick = useCallback(async () => {
26 setTriggerAnimation(false);
27 setTriggerAnimation(false);
27 setIsIn(false);
28 setIsIn(false);
28 await timeout(DEFAULT_FADE_TIMEOUT); // Pause for UI fade animation
30 await timeout(DEFAULT_FADE_TIMEOUT); // Pause for UI fade animation
29 goToDownload();
31 goToDownload();
30 }, [goToDownload, setIsIn]);
32 }, [goToDownload, setIsIn]);
@@ -72,7 +74,7 @@ const MasterKeyReveal = () => {
72 }, [delayedFadeIn, setIsIn]);
74 }, [delayedFadeIn, setIsIn]);
75− <View centered={true} inset>
77+ <View centered={true}>
76 <ActivateView
78 <ActivateView
77 header={triggerAnimation && header}
79 header={triggerAnimation && header}
78 footer={triggerAnimation && footer}>
80 footer={triggerAnimation && footer}>
@@ -90,7 +92,7 @@ const MasterKeyReveal = () => {
90 width={'80%'}
92 width={'80%'}
91 height={'min-content'}
93 height={'min-content'}
92 justifyContent={'center'}>
94 justifyContent={'center'}>
93− <MasterKey />
95+ <MasterKey overrideFadeIn={!fadeOutKey} />
96 </ActivateView>
98 </ActivateView>