Skip to content

Commit

Permalink
chore: remove authorization block on nav bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Vieira Marcelino committed Apr 25, 2024
1 parent 682461f commit 6a5a967
Showing 1 changed file with 22 additions and 28 deletions.
50 changes: 22 additions & 28 deletions frontend/src/components/PrivateLayout/header/drawerMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AuthorizationComponent } from "@components/AuthorizationComponent";
import {
AccountTree as AccountTreeIcon,
BlurCircular,
Expand Down Expand Up @@ -54,36 +53,31 @@ export const DrawerMenu: FC<IDrawerMenuProps> = ({ isOpen, handleClose }) => {
alt="logo"
style={{ width: "190px", marginRight: "8px", marginLeft: "20px" }}
/>
<AuthorizationComponent
allowedRoles={["owner", "admin"]}
sx={{ maxWidth: "200px", ml: "auto" }}
<IconButton
component="p"
sx={{
color: "inherit",
fontSize: "1.2rem",
fontWeight: 100,
ml: "auto",
alignItems: "center",
display: { xs: "none", md: "flex" },
}}
onClick={() => {
if (workspace) {
navigate("/workspaces/settings");
}
}}
>
<IconButton
component="p"
<BlurCircular
sx={{
color: "inherit",
fontSize: "1.2rem",
fontWeight: 100,
ml: "auto",
alignItems: "center",
display: { xs: "none", md: "flex" },
mr: 1,
}}
onClick={() => {
if (workspace) {
navigate("/workspaces/settings");
}
}}
>
<BlurCircular
sx={{
mr: 1,
}}
/>
{workspace?.workspace_name
? workspace?.workspace_name
: "No workspace selected"}
</IconButton>
</AuthorizationComponent>
/>
{workspace?.workspace_name
? workspace?.workspace_name
: "No workspace selected"}
</IconButton>
</Toolbar>
</AppBar>
<Drawer variant="permanent" open={isOpen}>
Expand Down

0 comments on commit 6a5a967

Please sign in to comment.