@@ -186,6 +186,7 @@ interface MatchScoutAssignment {
186
186
team : number ;
187
187
red : [ number , number , number ] ;
188
188
blue : [ number , number , number ] ;
189
+ assignee ?: string ;
189
190
}
190
191
function MatchScoutAssignment ( {
191
192
assignment,
@@ -198,18 +199,45 @@ function MatchScoutAssignment({
198
199
< View className = "flex-grow flex-col" >
199
200
< View className = "flex flex-row justify-evenly" >
200
201
< View >
201
- < Text className = "text-emerald -400" >
202
+ < Text className = "text-red -400" >
202
203
< Text
203
204
// style={{ padding: 20 }}
204
205
// className="rounded-box bg-stone-500 text-cyan-300"
205
206
>
206
207
Red
207
208
</ Text >
208
- : { assignment . red . join ( ", " ) }
209
+ :{ " " }
210
+ { assignment . red
211
+ . map < React . ReactNode > ( ( x ) => (
212
+ < Text
213
+ className = {
214
+ x === assignment . team ? "bg-amber-300" : undefined
215
+ }
216
+ >
217
+ { x } { " " }
218
+ </ Text >
219
+ ) )
220
+ . reduce ( ( prev , curr ) => [ prev , ", " , curr ] ) }
209
221
</ Text >
210
- < Text className = "text-emerald-400" >
211
- Blue: { assignment . blue . join ( ", " ) }
222
+ < Text className = "text-blue-400" >
223
+ Blue:{ " " }
224
+ { assignment . blue
225
+ . map < React . ReactNode > ( ( x ) => (
226
+ < Text
227
+ className = {
228
+ x === assignment . team ? "bg-amber-300" : undefined
229
+ }
230
+ >
231
+ { x } { " " }
232
+ </ Text >
233
+ ) )
234
+ . reduce ( ( prev , curr ) => [ prev , ", " , curr ] ) }
212
235
</ Text >
236
+ { assignment . assignee && (
237
+ < Text className = "text-yellow-500" >
238
+ This task is assigned to you
239
+ </ Text >
240
+ ) }
213
241
</ View >
214
242
< View >
215
243
< Text className = "text-emerald-400" >
0 commit comments