Update colors
This commit is contained in:
parent
c4f990ea19
commit
921a3be6b2
@ -130,11 +130,17 @@ export default function Flight() {
|
||||
{(log.pax || log.crew) &&
|
||||
(log.pax.length > 0 || log.crew.length > 0) ? (
|
||||
<Group grow mt="sm">
|
||||
<VerticalLogItem label="Pax" content={log.pax} list />
|
||||
<VerticalLogItem
|
||||
label="Pax"
|
||||
content={log.pax}
|
||||
list
|
||||
listColor="gray"
|
||||
/>
|
||||
<VerticalLogItem
|
||||
label="Crew"
|
||||
content={log.crew}
|
||||
list
|
||||
listColor="gray"
|
||||
/>
|
||||
</Group>
|
||||
) : null}
|
||||
|
@ -116,8 +116,8 @@ function FlightsListDisplay({
|
||||
</Text>
|
||||
{flight.waypoint_from ||
|
||||
flight.waypoint_to ? (
|
||||
<>
|
||||
<Text>/</Text>
|
||||
) : null}
|
||||
<Group gap="xs">
|
||||
{flight.waypoint_from ? (
|
||||
<Text>
|
||||
@ -131,11 +131,15 @@ function FlightsListDisplay({
|
||||
<IconArrowRightTail />
|
||||
) : null}
|
||||
{flight.waypoint_to ? (
|
||||
<Text>{flight.waypoint_to}</Text>
|
||||
<Text>
|
||||
{flight.waypoint_to}
|
||||
</Text>
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
</Group>
|
||||
</>
|
||||
) : null}
|
||||
</Group>
|
||||
}
|
||||
description={
|
||||
|
@ -27,6 +27,7 @@ export function VerticalLogItem({
|
||||
time = false,
|
||||
date = false,
|
||||
list = false,
|
||||
listColor = "",
|
||||
}: {
|
||||
label: string;
|
||||
content: string | string[] | null;
|
||||
@ -35,6 +36,7 @@ export function VerticalLogItem({
|
||||
time?: boolean;
|
||||
date?: boolean;
|
||||
list?: boolean;
|
||||
listColor?: string;
|
||||
}) {
|
||||
if (content === null) content = "";
|
||||
if (decimal > 0) content = Number(content).toFixed(decimal);
|
||||
@ -56,7 +58,7 @@ export function VerticalLogItem({
|
||||
{(content as string[]).length > 0 ? (
|
||||
<Text size="lg">
|
||||
{(content as string[]).map((item) => (
|
||||
<Badge key={randomId()} size="lg" mx="xs">
|
||||
<Badge key={randomId()} size="lg" mx="xs" color={listColor}>
|
||||
{item}
|
||||
</Badge>
|
||||
))}
|
||||
|
Loading…
x
Reference in New Issue
Block a user