add compact mode

This commit is contained in:
Calli
2023-07-03 22:12:45 +03:00
parent 4cffd6d706
commit 933efd3cbf
6 changed files with 55 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
import { SessionContext } from "@/app/context/Context";
import { ToggleButton, Tooltip } from "@mui/material";
import { useContext } from "react";
export const CompactModeButton = () => {
const { compactMode, toggleCompactMode } = useContext(SessionContext);
return (
<Tooltip title="Export your EVE PI list to transfer to another device or backup">
<ToggleButton
value="check"
selected={compactMode}
onChange={toggleCompactMode}
style={{ margin: "1rem 0" }}
>
Compact mode
</ToggleButton>
</Tooltip>
);
};