File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
apps/namadillo/src/App/Layout Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { AlphaVersionTopHeader } from "App/Common/AlphaVersionTopHeader" ;
2
2
import { ReactNode , useState } from "react" ;
3
+ import { IoMdClose } from "react-icons/io" ;
3
4
import { twMerge } from "tailwind-merge" ;
4
5
import { AppHeader } from "./AppHeader" ;
5
6
import { BurgerButton } from "./BurgerButton" ;
@@ -41,6 +42,15 @@ export const AppLayout = ({
41
42
! displayNavigation && "-translate-x-full lg:translate-x-0"
42
43
) }
43
44
>
45
+ { displayNavigation && (
46
+ < button
47
+ className = "absolute top-4 left-4 text-white hover:text-yellow text-2xl"
48
+ onClick = { ( ) => setDisplayNavigation ( false ) }
49
+ aria-label = "Close Navigation"
50
+ >
51
+ < IoMdClose />
52
+ </ button >
53
+ ) }
44
54
< Navigation />
45
55
</ aside >
46
56
< main className = "min-h-full" > { children } </ main >
You can’t perform that action at this time.
0 commit comments