This repository was archived by the owner on Oct 30, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 11 files changed +148
-8
lines changed Expand file tree Collapse file tree 11 files changed +148
-8
lines changed Original file line number Diff line number Diff line change 28
28
"react-avatar" : " ^3.10.0" ,
29
29
"react-dom" : " ^17.0.2" ,
30
30
"react-draft-wysiwyg" : " ^1.14.7" ,
31
+ "react-ga" : " ^3.3.0" ,
31
32
"react-google-login" : " ^5.2.2" ,
32
33
"react-icons" : " ^4.3.1" ,
33
34
"react-loader-advanced" : " ^1.7.1" ,
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ import Register from './Components/Auth/Register/Register';
13
13
import Cookies from 'universal-cookie' ;
14
14
import ProtectedRoute from './Protected'
15
15
import Trial from './trial' ;
16
+ import ReactGA from 'react-ga' ;
17
+ import TeamPage from './Components/Team Page/TeamPage'
16
18
import NotFound from './Components/NotFound/NotFound' ;
17
19
const cookies = new Cookies ( ) ;
18
20
const history = createBrowserHistory ( ) ;
@@ -22,6 +24,11 @@ function App() {
22
24
// useEffect(() => {
23
25
// console.log({ authroot: isAuthenticated });
24
26
// }, [isAuthenticated])
27
+ useEffect ( ( ) => {
28
+ ReactGA . initialize ( 'UA-213485416-1' ) ;
29
+ ReactGA . pageview ( window . location . pathname + window . location . search ) ;
30
+ } , [ ] )
31
+
25
32
const [ loginUser , setLoginUser ] = useState ( null )
26
33
27
34
@@ -40,6 +47,8 @@ function App() {
40
47
< Route path = '/newRoom' render = { ( props ) => isAuthenticated ? < CreateRoom { ...props } /> : < Redirect to = "/login" /> } exact />
41
48
< Route path = '/editor' render = { Editor } exact />
42
49
< Route path = '/trial' render = { ( props ) => < Trial { ...props } /> } exact />
50
+ < Route path = "/team" component = { TeamPage } exact />
51
+
43
52
</ Router >
44
53
) ;
45
54
}
Original file line number Diff line number Diff line change @@ -52,10 +52,10 @@ function FrontPage(props) {
52
52
Room
53
53
</ a >
54
54
< a
55
- href = "/trial "
55
+ href = "/team "
56
56
className = "hover:no-underline hover:text-gray-200 hover:bg-indigo-500 text-black px-3 py-2 rounded-md text-base font-semibold "
57
57
>
58
- Trial
58
+ Our Team
59
59
</ a >
60
60
61
61
</ div >
@@ -147,25 +147,25 @@ function FrontPage(props) {
147
147
Room
148
148
</ a >
149
149
< a
150
- href = "/trial "
150
+ href = "/team "
151
151
className = "hover:no-underline hover:text-gray-200 hover:bg-indigo-500 text-black block px-3 py-2 rounded-md text-base font-medium"
152
152
>
153
- Trial
153
+ Our Team
154
154
</ a >
155
155
156
156
157
157
</ div >
158
158
< div >
159
159
< a
160
- href = "/login "
160
+ href = "/register "
161
161
type = 'submit'
162
162
className = "w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-base font-medium text-white bg-indigo-600 hover:bg-indigo-700"
163
163
>
164
164
Sign up
165
165
</ a >
166
166
< p className = "mt-6 text-center text-base font-medium text-gray-500" >
167
167
Existing customer?{ ' ' }
168
- < a href = "/register "
168
+ < a href = "/login "
169
169
type = "submit"
170
170
className = "text-indigo-600 hover:text-indigo-500" >
171
171
Sign in
Original file line number Diff line number Diff line change @@ -117,7 +117,12 @@ function Header(props) {
117
117
>
118
118
Join Room
119
119
</ a >
120
-
120
+ < a
121
+ href = "/team"
122
+ className = "hover:no-underline hover:text-gray-200 hover:bg-indigo-500 text-black px-3 py-2 rounded-md text-base font-semibold "
123
+ >
124
+ Our Team
125
+ </ a >
121
126
</ div >
122
127
</ div >
123
128
</ div >
@@ -212,6 +217,12 @@ function Header(props) {
212
217
>
213
218
Join Room
214
219
</ a >
220
+ < a
221
+ href = "/team"
222
+ className = "hover:no-underline hover:text-gray-200 hover:bg-indigo-500 text-black block px-3 py-2 rounded-md text-base font-medium"
223
+ >
224
+ Our Team
225
+ </ a >
215
226
</ div >
216
227
< div >
217
228
< button
You can’t perform that action at this time.
0 commit comments