mirror of
https://github.com/calli-eve/eve-pi.git
synced 2026-02-11 18:28:49 +01:00
change compat mode to change the grid
This commit is contained in:
@@ -2,6 +2,8 @@ import { AccessToken } from "@/types";
|
||||
import { Box, Stack, Typography } from "@mui/material";
|
||||
import { CharacterRow } from "../Characters/CharacterRow";
|
||||
import { PlanetaryInteractionRow } from "../PlanetaryInteraction/PlanetaryInteractionRow";
|
||||
import { useContext } from "react";
|
||||
import { SessionContext } from "@/app/context/Context";
|
||||
|
||||
export const AccountCard = ({
|
||||
characters,
|
||||
@@ -10,11 +12,13 @@ export const AccountCard = ({
|
||||
characters: AccessToken[];
|
||||
sessionReady: boolean;
|
||||
}) => {
|
||||
const { compactMode } = useContext(SessionContext);
|
||||
return (
|
||||
<Box
|
||||
sx={{
|
||||
padding: 1,
|
||||
borderBottom: "solid 1px gray",
|
||||
borderBottom: compactMode ? "" : "solid 1px gray",
|
||||
borderRight: compactMode ? "solid 1px gray" : "",
|
||||
}}
|
||||
>
|
||||
<Typography style={{ fontSize: "0.8rem" }} paddingLeft={2}>
|
||||
|
||||
Reference in New Issue
Block a user