File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -102,14 +102,14 @@ function AuthenticatedApp() {
102
102
( ! access_token | jwtExpired ) ? < Login setToken = { setToken } /> : < Switch >
103
103
104
104
< Route exact path = "/" >
105
- < HomePage />
105
+ < HomePage access_token = { access_token } />
106
106
</ Route >
107
107
108
108
109
109
{ /* If an admin, render Upload page */
110
110
userRole === 'admin' &&
111
111
< Route path = "/admin" >
112
- < Admin />
112
+ < Admin access_token = { access_token } />
113
113
</ Route >
114
114
}
115
115
@@ -119,11 +119,11 @@ function AuthenticatedApp() {
119
119
</ Route >
120
120
121
121
< Route path = "/360view/search" >
122
- < Search360 />
122
+ < Search360 access_token = { access_token } />
123
123
</ Route >
124
124
125
125
< Route path = "/360view/view" >
126
- < View360 />
126
+ < View360 access_token = { access_token } />
127
127
</ Route >
128
128
129
129
< Route path = "/check" >
Original file line number Diff line number Diff line change @@ -170,7 +170,15 @@ class Search360 extends Component {
170
170
this . setState ( { isDataBusy : true , search_participant : search_participant } ) ;
171
171
172
172
await new Promise ( resolve => setTimeout ( resolve , 1000 ) ) ;
173
- let response = await fetch ( `/api/contacts/${ search_participant } ` ) ;
173
+ let response = await fetch ( `/api/contacts/${ search_participant } ` ,
174
+ {
175
+ method : 'GET' ,
176
+ headers : {
177
+ 'Content-Type' : 'application/json' ,
178
+ 'Authorization' : 'Bearer ' + this . props . access_token
179
+ }
180
+ }
181
+ ) ;
174
182
response = await response . json ( ) ;
175
183
176
184
await this . setState ( { participantList : response . result } )
You can’t perform that action at this time.
0 commit comments