forked from github/plane
55afef204d
* style: responsive profile * style: profile header drop down, sidebar auto show hide depending on the screen width * fix: item tap on white space in the drop down menu in profile header * fix: profile layout breaking on big screens in page visit
17 lines
626 B
TypeScript
17 lines
626 B
TypeScript
import { FC } from "react";
|
|
import { Menu } from "lucide-react";
|
|
import { useApplication } from "hooks/store";
|
|
import { observer } from "mobx-react";
|
|
|
|
export const SidebarHamburgerToggle: FC = observer(() => {
|
|
const { theme: themStore } = useApplication();
|
|
return (
|
|
<div
|
|
className="w-7 h-7 rounded flex justify-center items-center bg-custom-background-80 transition-all hover:bg-custom-background-90 cursor-pointer group md:hidden"
|
|
onClick={() => themStore.toggleSidebar()}
|
|
>
|
|
<Menu size={14} className="text-custom-text-200 group-hover:text-custom-text-100 transition-all" />
|
|
</div>
|
|
);
|
|
});
|