Fix all the fucking connection coloring

This commit is contained in:
2025-06-14 03:41:11 +02:00
parent 5143ba79a2
commit b401b4784a
3 changed files with 19 additions and 24 deletions

View File

@@ -24,8 +24,7 @@ interface ProcessedConnection {
key: string;
from: Position;
to: Position;
fromColor: string;
toColor: string;
color: string;
}
const fetchRegionData = async (regionName: string): Promise<SolarSystem[]> => {
@@ -80,8 +79,7 @@ export const RegionMap: React.FC<{ regionName: string }> = ({ regionName }) => {
key: connectionKey,
from: fromPos,
to: toPos,
fromColor: connectionColor,
toColor: connectionColor
color: connectionColor
});
});
});
@@ -244,8 +242,7 @@ export const RegionMap: React.FC<{ regionName: string }> = ({ regionName }) => {
key={connection.key}
from={connection.from}
to={connection.to}
fromColor={connection.fromColor}
toColor={connection.toColor}
color={connection.color}
/>
))}