refactor main view to table and add production, import and export information per planet

This commit is contained in:
Calli
2023-07-16 19:02:11 +03:00
parent bc0c2f83a2
commit 4c392533da
11 changed files with 1906 additions and 15 deletions

View File

@@ -3,13 +3,7 @@ import { Box, Stack, Typography, useTheme } from "@mui/material";
import { CharacterRow } from "../Characters/CharacterRow";
import { PlanetaryInteractionRow } from "../PlanetaryInteraction/PlanetaryInteractionRow";
export const AccountCard = ({
characters,
sessionReady,
}: {
characters: AccessToken[];
sessionReady: boolean;
}) => {
export const AccountCard = ({ characters }: { characters: AccessToken[] }) => {
const theme = useTheme();
return (
<Box
@@ -30,7 +24,7 @@ export const AccountCard = ({
alignItems="flex-start"
>
<CharacterRow character={c} />
{sessionReady && <PlanetaryInteractionRow character={c} />}
<PlanetaryInteractionRow character={c} />
</Stack>
))}
</Box>