remove unessessary refresh button

This commit is contained in:
Calli
2023-06-23 19:29:28 +03:00
parent 589570ebfd
commit 009d6c988d
2 changed files with 0 additions and 19 deletions

View File

@@ -1,17 +0,0 @@
import { CharacterContext, SessionContext } from "@/app/context/Context";
import { Button } from "@mui/material";
import { useContext } from "react";
export const RefreshButton = () => {
const { refreshSession } = useContext(SessionContext);
const { characters } = useContext(CharacterContext);
return (
<Button
style={{ width: "100%" }}
variant="contained"
onClick={() => refreshSession(characters)}
>
Refresh
</Button>
);
};

View File

@@ -1,7 +1,6 @@
import { useContext } from "react"; import { useContext } from "react";
import { Box, Grid, Stack } from "@mui/material"; import { Box, Grid, Stack } from "@mui/material";
import { LoginButton } from "./Login/LoginButton"; import { LoginButton } from "./Login/LoginButton";
import { RefreshButton } from "./Login/RefreshButton";
import { AccountCard } from "./Account/AccountCard"; import { AccountCard } from "./Account/AccountCard";
import { AccessToken } from "@/types"; import { AccessToken } from "@/types";
import { CharacterContext } from "../context/Context"; import { CharacterContext } from "../context/Context";
@@ -25,7 +24,6 @@ export const MainGrid = ({ sessionReady }: { sessionReady: boolean }) => {
<Grid item xs={2}> <Grid item xs={2}>
<Stack direction="row" spacing={1}> <Stack direction="row" spacing={1}>
<LoginButton /> <LoginButton />
<RefreshButton />
</Stack> </Stack>
</Grid> </Grid>
</Grid> </Grid>