Commit d8648b2c authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

fix: layout for mobile & navbar icon;

parent b3c1404a
...@@ -281,7 +281,11 @@ function Navbar(props) { ...@@ -281,7 +281,11 @@ function Navbar(props) {
> >
{MenuList.map((menu, idx) => ( {MenuList.map((menu, idx) => (
<span key={idx}> <span key={idx}>
<Link onClick={handleMobileMenuClose} className="text-black no-underline" href={menu.link}> <Link
onClick={handleMobileMenuClose}
className="text-black no-underline"
href={menu.link}
>
<MenuItem> <MenuItem>
{menu.element} {menu.element}
<p>{menu.label}</p> <p>{menu.label}</p>
...@@ -304,16 +308,16 @@ function Navbar(props) { ...@@ -304,16 +308,16 @@ function Navbar(props) {
variant="h6" variant="h6"
noWrap noWrap
component="div" component="div"
sx={{ display: { xs: "none", md: "block" } }} sx={{ display: { md: "block" } }}
> >
<Link <Link
className="bg-black p-4 rounded-lg inline-block py-2" className="bg-black rounded-lg inline-block px-2 sm:p-4 sm:py-2"
href={"/"} href={"/"}
> >
OpenShop OpenShop
</Link> </Link>
</Typography> </Typography>
<Search> <Search sx={{ width: 150 }}>
<SearchIconWrapper> <SearchIconWrapper>
<SearchIcon /> <SearchIcon />
</SearchIconWrapper> </SearchIconWrapper>
......
...@@ -35,8 +35,8 @@ export default function AdminLayout({ children }) { ...@@ -35,8 +35,8 @@ export default function AdminLayout({ children }) {
fetch: fetchAdminOrder, fetch: fetchAdminOrder,
}} }}
> >
<Box sx={{ display: "flex" }}> <AdminNavbar />
<AdminNavbar /> <Box>
{/* <Sidebar /> */} {/* <Sidebar /> */}
<Box <Box
component="main" component="main"
......
...@@ -7,8 +7,8 @@ import Footer from "../Footer"; ...@@ -7,8 +7,8 @@ import Footer from "../Footer";
export default function UserLayout({ children }) { export default function UserLayout({ children }) {
return ( return (
<> <>
<Box sx={{ display: "flex" }}> <Navbar />
<Navbar /> <Box>
{/* <Sidebar /> */} {/* <Sidebar /> */}
<Box <Box
component="main" component="main"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment