@@ -61,9 +61,11 @@ export default function ActivateCode() {
6161 const [isGenerating, setIsGenerating] = useState<boolean>(false);
6262
6363 const {
64+ isFaded,
6465 setDerivedPoint,
6566 setDerivedWallet,
6667 setInviteWallet,
68+ setIsFaded,
6769 } = useActivateFlow();
6870 // this is a pretty naive way to detect if we're on a mobile device
6971 // (i.e. we're checking the width of the screen)
@@ -76,13 +78,13 @@ export default function ActivateCode() {
7678 history,
7779 ]);
7880
79− const goToPassport = useCallback(() => {
81+ const goToMasterKey = useCallback(() => {
8082 if (!hasDisclaimed) {
81− push(names.DISCLAIMER, { next: names.PASSPORT });
83+ push(names.DISCLAIMER, { next: names.MASTER_KEY });
8284 } else {
83− push(names.PASSPORT);
85+ push(names.MASTER_KEY);
8486 }
85− }, [hasDisclaimed, names.DISCLAIMER, names.PASSPORT, push]);
87+ }, [hasDisclaimed, names.DISCLAIMER, names.MASTER_KEY, push]);
8688
8789 const validateForm = useCallback((values, errors) => {
8890 didWarn.current = false;
@@ -131,7 +133,8 @@ export default function ActivateCode() {
131133 const onSubmit = useCallback(
132134 async values => {
133135 setIsGenerating(true);
134− await timeout(16); // allow the ui changes to flush before we lag it out
136+ setIsFaded(true);
137+ await timeout(1400); // Allow the Master Key animation to run for one cycle
135138
136139 // Derive wallet
137140 // TODO: fallback logic to first use implied values if present, otherwise form values?
@@ -220,7 +223,7 @@ export default function ActivateCode() {
220223 <BridgeForm
221224 validate={validate}
222225 onSubmit={onSubmit}
223− afterSubmit={goToPassport}
226+ afterSubmit={goToMasterKey}
224227 initialValues={initialValues}>
225228 {({ validating, values, submitting, handleSubmit }) => (
226229 <>
@@ -275,7 +278,7 @@ export default function ActivateCode() {
275278 );
276279 }, [
277280 activationAllowed,
278− goToPassport,
281+ goToMasterKey,
279282 impliedTicket,
280283 initialValues,
281284 onSubmit,
@@ -302,19 +305,21 @@ export default function ActivateCode() {
302305 <Text className="mb2">Enter your activation code to continue.</Text>
303306 )}
304307 {!isGenerating && impliedPatp && (
305− <PointPresenter patp={impliedPatp} />
306− )}
307− {isGenerating && (
308− <Box
309− display={'flex'}
310− flexDirection={'row'}
311− flexWrap={'nowrap'}
312− width={'80%'}
313− height={'min-content'}
314− justifyContent={'center'}>
315− <MasterKey />
316− </Box>
308+ <PointPresenter
309+ patp={impliedPatp}
310+ className={!isFaded ? 'faded-in' : 'faded-out'}
311+ />
317312 )}
313+ <Box
314+ display={'flex'}
315+ flexDirection={'row'}
316+ flexWrap={'nowrap'}
317+ className={isFaded ? 'faded-in' : 'faded-out'}
318+ width={'80%'}
319+ height={'min-content'}
320+ justifyContent={'center'}>
321+ <MasterKey />
322+ </Box>
318323 </Box>
319324 </ActivateView>
320325