refactor: change UI of login/list and fix Api not being defined in context

This commit is contained in:
Prayag Prajapati committed 2024-11-20 11:16:22 +05:30
1 parent b0e08ce4bd
commit c8409d8a01
13 files changed
+243 -171

No files matched your search

@@ -2,6 +2,8 @@ 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();
@@ -16,13 +18,23 @@ export const AppBarBackOnly = () => {
<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>
);