From 04549a8507816e332e6b7b5bf31ac2051e310c9a Mon Sep 17 00:00:00 2001 From: Jeremy Kahn Date: Mon, 5 Sep 2022 17:54:23 -0500 Subject: [PATCH] feat: close menu when navigating home --- src/components/Shell/Shell.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Shell/Shell.tsx b/src/components/Shell/Shell.tsx index 4e90c67..0caca44 100644 --- a/src/components/Shell/Shell.tsx +++ b/src/components/Shell/Shell.tsx @@ -169,6 +169,10 @@ export const Shell = ({ children, userPeerId }: ShellProps) => { setIsDrawerOpen(false) } + const handleHomeLinkClick = () => { + setIsDrawerOpen(false) + } + const handleLinkButtonClick = async () => { await navigator.clipboard.writeText(window.location.href) @@ -288,7 +292,7 @@ export const Shell = ({ children, userPeerId }: ShellProps) => { - +