File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
- GATSBY_SHOW_FUTURE_EARNINGS_PAGE = false
1
+ GATSBY_SHOW_FUTURE_EARNINGS_PAGE = false
2
+ GATSBY_SCROLL_WHEN_FINISH = false
Original file line number Diff line number Diff line change 1
- export const gatsbyShowFutureEarningsPage = process . env . GATSBY_SHOW_FUTURE_EARNINGS_PAGE === "true" || false ;
1
+ export const gatsbyShowFutureEarningsPage = process . env . GATSBY_SHOW_FUTURE_EARNINGS_PAGE === "true" || false ;
2
+ export const gatsbyScrollWhenFinish = process . env . GATSBY_SCROLL_WHEN_FINISH === "true" || false ;
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import {
25
25
useUserStateActions ,
26
26
} from "../library/user-state-actions-context" ;
27
27
import { PiaFormat } from "../library/pia/pia-format" ;
28
+ import { gatsbyScrollWhenFinish } from "../constants/config" ;
28
29
29
30
export const SsaImage = styled ( "img" ) `
30
31
border: 1px solid #dddddd;
@@ -67,10 +68,12 @@ class Prescreen1b extends React.Component<Prescreen1bProps> {
67
68
}
68
69
69
70
scrollToElement ( ref ) {
71
+ if ( gatsbyScrollWhenFinish ) {
70
72
setTimeout ( ( ) => {
71
73
ref . current . scrollIntoView ( { behavior : 'smooth' , block : 'start' } ) ;
72
74
} , 100 )
73
75
}
76
+ }
74
77
75
78
showFileUpload ( ) {
76
79
const {
You can’t perform that action at this time.
0 commit comments