refactor: change UI of login/list and fix Api not being defined in context
This commit is contained in:
13 files changed
+243
-171
No files matched your search
@@ -0,0 +1,41 @@
|
||||
import AppBar from "@mui/material/AppBar";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import Toolbar from "@mui/material/Toolbar";
|
||||
import { useRouter } from "@tanstack/react-router";
|
||||
import React from "react";
|
||||
import QuickConnectButton from "../buttons/quickConnectButton";
|
||||
|
||||
export const AppBarBackOnly = () => {
|
||||
const { history } = useRouter();
|
||||
|
||||
const handleBack = () => {
|
||||
history.go(-1);
|
||||
};
|
||||
|
||||
return (
|
||||
<AppBar elevation={0} color="transparent" position="fixed">
|
||||
<Toolbar>
|
||||
<IconButton
|
||||
size="large"
|
||||
edge="start"
|
||||
//@ts-ignore
|
||||
color="white"
|
||||
aria-label="back"
|
||||
disabled={history.length <= 1}
|
||||
onClick={handleBack}
|
||||
sx={{ mr: 2 }}
|
||||
>
|
||||
<span className="material-symbols-rounded">arrow_back</span>
|
||||
</IconButton>
|
||||
<QuickConnectButton
|
||||
sx={{
|
||||
marginLeft: "auto",
|
||||
flex: "none !important",
|
||||
borderRadius: "10px",
|
||||
}}
|
||||
color="secondary"
|
||||
/>
|
||||
</Toolbar>
|
||||
</AppBar>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user