Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions example-embedded-app/src/docs-layout/AppBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import React, { useState } from "react";
import { alpha } from "@mui/material/styles";
import { useRouter } from "next/router";
import Link from "next/link";
import MuiAppBar from "@mui/material/AppBar";
import Box from "@mui/material/Box";
import Toolbar from "@mui/material/Toolbar";
Expand Down Expand Up @@ -177,18 +176,17 @@ const AppBar: React.FC<{
open={isMenuOpen}
onClose={closeMenu}
>
<Link key={0} href={"/settings/user"} passHref>
<MenuItem
onClick={() => {
closeMenu();
}}
>
<ListItemIcon>
<Person fontSize="small" />
</ListItemIcon>
<ListItemText primary="Profile" data-cy="account-profile" />
</MenuItem>
</Link>
<MenuItem
onClick={() => {
closeMenu();
router.push("/settings/user");
}}
>
<ListItemIcon>
<Person fontSize="small" />
</ListItemIcon>
<ListItemText primary="Profile" data-cy="account-profile" />
</MenuItem>
<Divider />
<MenuItem
onClick={() => {
Expand Down
16 changes: 8 additions & 8 deletions example-embedded-app/src/docs-layout/AppDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ const AppDrawer: React.FC<{
}}
>
{/* <ListSubheader sx={{ fontSize: "1rem" }}>Dashboard</ListSubheader> */}
<Link href="/" passHref>
<ListItemButton component="a" selected={pathname === "/"}>
<Link href="/" passHref style={{ textDecoration: "none", color: "inherit" }}>
<ListItemButton selected={pathname === "/"}>
<ListItemIcon sx={{ color: "inherit" }}>
<Icons.Home />
</ListItemIcon>
Expand Down Expand Up @@ -128,8 +128,8 @@ const AppDrawer: React.FC<{
},
].map((entry, i) => {
return (
<Link key={`records-${i}`} href={entry?.link || "/#"} passHref>
<ListItemButton component="a" selected={pathname === entry?.link}>
<Link key={`records-${i}`} href={entry?.link || "/#"} passHref style={{ textDecoration: "none", color: "inherit" }}>
<ListItemButton selected={pathname === entry?.link}>
<ListItemIcon sx={{ color: "inherit" }}>
{entry?.icon}
</ListItemIcon>
Expand Down Expand Up @@ -165,8 +165,8 @@ const AppDrawer: React.FC<{
},
].map((entry, i) => {
return (
<Link key={`integrations-${i}`} href={entry?.link || "/#"} passHref>
<ListItemButton component="a" selected={pathname === entry?.link}>
<Link key={`integrations-${i}`} href={entry?.link || "/#"} passHref style={{ textDecoration: "none", color: "inherit" }}>
<ListItemButton selected={pathname === entry?.link}>
<ListItemIcon sx={{ color: "inherit" }}>
{entry?.icon}
</ListItemIcon>
Expand Down Expand Up @@ -197,8 +197,8 @@ const AppDrawer: React.FC<{
},
].map((entry, i) => {
return (
<Link key={`settings-${i}`} href={entry?.link || "/#"} passHref>
<ListItemButton component="a" selected={pathname === entry?.link}>
<Link key={`settings-${i}`} href={entry?.link || "/#"} passHref style={{ textDecoration: "none", color: "inherit" }}>
<ListItemButton selected={pathname === entry?.link}>
<ListItemIcon sx={{ color: "inherit" }}>
{entry?.icon}
</ListItemIcon>
Expand Down