remove unessessary refresh button
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
@@ -1,7 +1,6 @@
|
||||
import { useContext } from "react";
|
||||
import { Box, Grid, Stack } from "@mui/material";
|
||||
import { LoginButton } from "./Login/LoginButton";
|
||||
import { RefreshButton } from "./Login/RefreshButton";
|
||||
import { AccountCard } from "./Account/AccountCard";
|
||||
import { AccessToken } from "@/types";
|
||||
import { CharacterContext } from "../context/Context";
|
||||
@@ -25,7 +24,6 @@ export const MainGrid = ({ sessionReady }: { sessionReady: boolean }) => {
|
||||
<Grid item xs={2}>
|
||||
<Stack direction="row" spacing={1}>
|
||||
<LoginButton />
|
||||
<RefreshButton />
|
||||
</Stack>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
Reference in New Issue
Block a user