[go: nahoru, domu]

Skip to content

Commit

Permalink
touched up UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatXliner committed Feb 28, 2024
1 parent b0d6dc0 commit f916e0d
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions apps/WarriorHappy/src/app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ interface MatchScoutAssignment {
team: number;
red: [number, number, number];
blue: [number, number, number];
assignee?: string;
}
function MatchScoutAssignment({
assignment,
Expand All @@ -198,18 +199,45 @@ function MatchScoutAssignment({
<View className="flex-grow flex-col">
<View className="flex flex-row justify-evenly">
<View>
<Text className="text-emerald-400">
<Text className="text-red-400">
<Text
// style={{ padding: 20 }}
// className="rounded-box bg-stone-500 text-cyan-300"
>
Red
</Text>
: {assignment.red.join(", ")}
:{" "}
{assignment.red
.map<React.ReactNode>((x) => (
<Text
className={
x === assignment.team ? "bg-amber-300" : undefined
}
>
{x}{" "}
</Text>
))
.reduce((prev, curr) => [prev, ", ", curr])}
</Text>
<Text className="text-emerald-400">
Blue: {assignment.blue.join(", ")}
<Text className="text-blue-400">
Blue:{" "}
{assignment.blue
.map<React.ReactNode>((x) => (
<Text
className={
x === assignment.team ? "bg-amber-300" : undefined
}
>
{x}{" "}
</Text>
))
.reduce((prev, curr) => [prev, ", ", curr])}
</Text>
{assignment.assignee && (
<Text className="text-yellow-500">
This task is assigned to you
</Text>
)}
</View>
<View>
<Text className="text-emerald-400">
Expand Down

0 comments on commit f916e0d

Please sign in to comment.