Skip to content

Commit f916e0d

Browse files
committed
touched up UI
1 parent b0d6dc0 commit f916e0d

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

apps/WarriorHappy/src/app/index.tsx

+32-4
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ interface MatchScoutAssignment {
186186
team: number;
187187
red: [number, number, number];
188188
blue: [number, number, number];
189+
assignee?: string;
189190
}
190191
function MatchScoutAssignment({
191192
assignment,
@@ -198,18 +199,45 @@ function MatchScoutAssignment({
198199
<View className="flex-grow flex-col">
199200
<View className="flex flex-row justify-evenly">
200201
<View>
201-
<Text className="text-emerald-400">
202+
<Text className="text-red-400">
202203
<Text
203204
// style={{ padding: 20 }}
204205
// className="rounded-box bg-stone-500 text-cyan-300"
205206
>
206207
Red
207208
</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])}
209221
</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])}
212235
</Text>
236+
{assignment.assignee && (
237+
<Text className="text-yellow-500">
238+
This task is assigned to you
239+
</Text>
240+
)}
213241
</View>
214242
<View>
215243
<Text className="text-emerald-400">

0 commit comments

Comments
 (0)