This commit is contained in:
Manav Rathi
2024-07-20 21:03:22 +05:30
parent 542de42875
commit 4834cfb3ff
2 changed files with 4 additions and 15 deletions

View File

@@ -1,8 +1,8 @@
import { EnteFile } from "@/new/photos/types/file";
import { FlexWrapper, HorizontalFlex } from "@ente/shared/components/Container";
import SidebarToggler from "@ente/shared/components/Navbar/SidebarToggler";
import NavbarBase from "@ente/shared/components/Navbar/base";
import ArrowBack from "@mui/icons-material/ArrowBack";
import MenuIcon from "@mui/icons-material/Menu";
import { IconButton, Typography } from "@mui/material";
import SearchBar from "components/Search/SearchBar";
import UploadButton from "components/Upload/UploadButton";
@@ -53,7 +53,9 @@ export function GalleryNavbar({
) : (
<>
{!isInSearchMode && (
<SidebarToggler openSidebar={openSidebar} />
<IconButton onClick={openSidebar} sx={{ pl: 0 }}>
<MenuIcon />
</IconButton>
)}
<SearchBar
isInSearchMode={isInSearchMode}

View File

@@ -1,13 +0,0 @@
import MenuIcon from "@mui/icons-material/Menu";
import IconButton from "@mui/material/IconButton";
interface Iprops {
openSidebar: () => void;
}
export default function SidebarToggler({ openSidebar }: Iprops) {
return (
<IconButton onClick={openSidebar} sx={{ pl: 0 }}>
<MenuIcon />
</IconButton>
);
}