This repository was archived by the owner on Mar 7, 2024. It is now read-only.
File tree 1 file changed +15
-6
lines changed
1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import TermsView from './views/pages/documents/termsView';
22
22
import DocsLayout from './layouts/DocsLayout' ;
23
23
import PrivacyView from './views/pages/documents/privacyView' ;
24
24
import RefundView from './views/pages/documents/refundView' ;
25
+ import ScrollReset from './components/ScrollReset' ;
25
26
26
27
const renderRoutes = ( ) => (
27
28
< Suspense fallback = { < LoadingScreen /> } >
@@ -30,9 +31,12 @@ const renderRoutes = () => (
30
31
path = "/"
31
32
exact
32
33
render = { props => (
33
- < MainLayout >
34
- < HomeView { ...props } />
35
- </ MainLayout >
34
+ < >
35
+ < ScrollReset />
36
+ < MainLayout >
37
+ < HomeView { ...props } />
38
+ </ MainLayout >
39
+ </ >
36
40
) }
37
41
/>
38
42
@@ -51,6 +55,7 @@ const renderRoutes = () => (
51
55
exact
52
56
render = { props => (
53
57
< MainLayout >
58
+ < ScrollReset />
54
59
< EventsView { ...props } />
55
60
</ MainLayout >
56
61
) }
@@ -78,16 +83,20 @@ const renderRoutes = () => (
78
83
< Route
79
84
path = "/courses"
80
85
render = { props => (
81
- < MainLayout >
82
- < CoursesView { ...props } />
83
- </ MainLayout >
86
+ < >
87
+ < ScrollReset />
88
+ < MainLayout >
89
+ < CoursesView { ...props } />
90
+ </ MainLayout >
91
+ </ >
84
92
) }
85
93
/>
86
94
< Route
87
95
path = "/campusLeaders"
88
96
exact
89
97
render = { props => (
90
98
< MainLayout >
99
+ < ScrollReset />
91
100
< CAView { ...props } />
92
101
</ MainLayout >
93
102
) }
You can’t perform that action at this time.
0 commit comments