First working version of EVE-PI

This commit is contained in:
Calli
2023-06-23 12:07:45 +03:00
commit 5429ff7969
46 changed files with 28631 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
import { AccessToken } from "@/types";
import { Box, Stack, Typography } from "@mui/material";
import { CharacterRow } from "../Characters/CharacterRow";
import { PlanetaryInteractionRow } from "../PlanetaryInteraction/PlanetaryInteractionRow";
export const AccountCard = ({
characters,
sessionReady,
}: {
characters: AccessToken[];
sessionReady: boolean;
}) => {
return (
<Box
sx={{
background: "#262626",
padding: 1,
borderRadius: 1,
margin: 1,
}}
>
<Typography paddingLeft={2}>Account: {characters[0].account}</Typography>
{characters.map((c) => (
<Stack
key={c.character.characterId}
direction="row"
alignItems="flex-start"
>
<CharacterRow character={c} />
{sessionReady && <PlanetaryInteractionRow character={c} />}
</Stack>
))}
</Box>
);
};