File tree 2 files changed +19
-0
lines changed
src/containers/admin-dashBoard
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export default function CreateTeamModal({
20
20
getAllTeams : Team [ ] ;
21
21
getAllCohorts : Cohort [ ] ;
22
22
getAllUsers : any ;
23
+ getAllTTLUsers :any ,
23
24
} ;
24
25
createTeamModel : boolean ;
25
26
removeModel : Function ;
@@ -75,6 +76,9 @@ export default function CreateTeamModal({
75
76
} ,
76
77
} ) ;
77
78
}
79
+ // console.log(data?.getAllUsers
80
+ // ?.filter((user: any) => user.role === 'ttl' && !user.team))
81
+ console . log ( data ?. getAllTTLUsers )
78
82
/* istanbul ignore next */
79
83
return (
80
84
< div
Original file line number Diff line number Diff line change @@ -118,6 +118,20 @@ export const getAllTeam = gql`
118
118
name
119
119
description
120
120
}
121
+ getAllTTLUsers(orgToken: $orgToken) {
122
+ profile {
123
+ name
124
+ id
125
+ }
126
+ email
127
+ role
128
+ team {
129
+ name
130
+ cohort {
131
+ name
132
+ }
133
+ }
134
+ }
121
135
}
122
136
` ;
123
137
@@ -196,6 +210,7 @@ function AdminTeams() {
196
210
getAllTeams : Team [ ] ;
197
211
getAllCohorts : Cohort [ ] ;
198
212
getAllUsers : any ;
213
+ getAllTTLUsers :any ,
199
214
} ;
200
215
loading : boolean ;
201
216
error ?: any ;
You can’t perform that action at this time.
0 commit comments