File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 hideAllSections ,
55 scrollToAccountCreationSection ,
66 scrollToDecryptionSection ,
7- scrollToSecretKeySection ,
87} from '~/demo/DemoFlowHelpers' ;
98import { AccountCompletionSection } from '~/demo/sections/AccountCompletion/AccountCompletionSection' ;
109import { DecryptionSection } from '~/demo/sections/Decryption/DecryptionSection' ;
@@ -92,7 +91,7 @@ const onCreatedRegistrationInfo = (o: any) => {
9291 $transition1 . classList . remove ( 'hidden' ) ;
9392 $transition2 . classList . remove ( 'hidden' ) ;
9493
95- scrollToSecretKeySection ( ' center') ;
94+ $transition1 . scrollIntoView ( { behavior : 'smooth' , block : ' center' } ) ;
9695} ;
9796
9897const onDerivedKeys = ( ) => {
Original file line number Diff line number Diff line change @@ -32,17 +32,12 @@ export const hideAllSections = () => {
3232 allTransitions . forEach ( ( t ) => t . classList . add ( 'hidden' ) ) ;
3333} ;
3434
35- export const scrollToSecretKeySection = (
36- where : ScrollLogicalPosition = 'start' ,
37- ) : void => {
38- $secretKeySection . scrollIntoView ( { behavior : 'smooth' , block : where } ) ;
39- } ;
40-
4135export const scrollToDecryptionSection = (
4236 where : ScrollLogicalPosition = 'start' ,
4337) : void => {
4438 $decryptionSection . scrollIntoView ( { behavior : 'smooth' , block : where } ) ;
4539} ;
40+
4641export const scrollToAccountCreationSection = (
4742 where : ScrollLogicalPosition = 'start' ,
4843) : void => {
You can’t perform that action at this time.
0 commit comments