@@ -61,9 +61,11 @@ export default function ActivateCode() {
61 const [isGenerating, setIsGenerating] = useState<boolean>(false);
61 const [isGenerating, setIsGenerating] = useState<boolean>(false);
64 setDerivedPoint,
65 setDerivedPoint,
65 setDerivedWallet,
66 setDerivedWallet,
66 setInviteWallet,
67 setInviteWallet,
67 } = useActivateFlow();
69 } = useActivateFlow();
68 // this is a pretty naive way to detect if we're on a mobile device
70 // this is a pretty naive way to detect if we're on a mobile device
69 // (i.e. we're checking the width of the screen)
71 // (i.e. we're checking the width of the screen)
@@ -76,13 +78,13 @@ export default function ActivateCode() {
79− const goToPassport = useCallback(() => {
81+ const goToMasterKey = useCallback(() => {
80 if (!hasDisclaimed) {
82 if (!hasDisclaimed) {
81− push(names.DISCLAIMER, { next: names.PASSPORT });
83+ push(names.DISCLAIMER, { next: names.MASTER_KEY });
83− push(names.PASSPORT);
85+ push(names.MASTER_KEY);
85− }, [hasDisclaimed, names.DISCLAIMER, names.PASSPORT, push]);
87+ }, [hasDisclaimed, names.DISCLAIMER, names.MASTER_KEY, push]);
87 const validateForm = useCallback((values, errors) => {
89 const validateForm = useCallback((values, errors) => {
88 didWarn.current = false;
90 didWarn.current = false;
@@ -131,7 +133,8 @@ export default function ActivateCode() {
131 const onSubmit = useCallback(
133 const onSubmit = useCallback(
132 async values => {
134 async values => {
133 setIsGenerating(true);
135 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
136 // Derive wallet
139 // Derive wallet
137 // TODO: fallback logic to first use implied values if present, otherwise form values?
140 // TODO: fallback logic to first use implied values if present, otherwise form values?
@@ -220,7 +223,7 @@ export default function ActivateCode() {
220 <BridgeForm
223 <BridgeForm
221 validate={validate}
224 validate={validate}
222 onSubmit={onSubmit}
225 onSubmit={onSubmit}
223− afterSubmit={goToPassport}
226+ afterSubmit={goToMasterKey}
224 initialValues={initialValues}>
227 initialValues={initialValues}>
225 {({ validating, values, submitting, handleSubmit }) => (
228 {({ validating, values, submitting, handleSubmit }) => (
@@ -275,7 +278,7 @@ export default function ActivateCode() {
277 activationAllowed,
280 activationAllowed,
278− goToPassport,
281+ goToMasterKey,
279 impliedTicket,
282 impliedTicket,
280 initialValues,
283 initialValues,
281 onSubmit,
284 onSubmit,
@@ -302,19 +305,21 @@ export default function ActivateCode() {
302 <Text className="mb2">Enter your activation code to continue.</Text>
305 <Text className="mb2">Enter your activation code to continue.</Text>
304 {!isGenerating && impliedPatp && (
307 {!isGenerating && impliedPatp && (
305− <PointPresenter patp={impliedPatp} />
309+ patp={impliedPatp}
306− )}
310+ className={!isFaded ? 'faded-in' : 'faded-out'}
307− {isGenerating && (
311+ />
310− flexDirection={'row'}
313− height={'min-content'}
314− justifyContent={'center'}>
315+ flexDirection={'row'}
317+ className={isFaded ? 'faded-in' : 'faded-out'}
319+ height={'min-content'}
320+ justifyContent={'center'}>
319 </ActivateView>
324 </ActivateView>