@@ -2,6 +2,7 @@ import Link from 'next/link';
2
2
import { useState } from "react" ;
3
3
import { useRouter } from "next/router" ;
4
4
import { signOut , useSession } from 'next-auth/client' ;
5
+ import { MenuIcon , XIcon } from '@heroicons/react/outline' ;
5
6
6
7
export default function Shell ( props ) {
7
8
const router = useRouter ( ) ;
@@ -55,13 +56,6 @@ export default function Shell(props) {
55
56
</ div >
56
57
< div className = "hidden md:block" >
57
58
< div className = "ml-4 flex items-center md:ml-6" >
58
- < button className = "bg-gray-800 p-1 text-gray-400 rounded-full hover:text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white" >
59
- < span className = "sr-only" > View notifications</ span >
60
- < svg className = "h-6 w-6" xmlns = "http://www.w3.org/2000/svg" fill = "none" viewBox = "0 0 24 24" stroke = "currentColor" aria-hidden = "true" >
61
- < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = "2" d = "M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9" />
62
- </ svg >
63
- </ button >
64
-
65
59
< div className = "ml-3 relative" >
66
60
< div >
67
61
< button onClick = { toggleProfileDropdown } type = "button" className = "max-w-xs bg-gray-800 rounded-full flex items-center text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white" id = "user-menu" aria-expanded = "false" aria-haspopup = "true" >
@@ -84,12 +78,8 @@ export default function Shell(props) {
84
78
< div className = "-mr-2 flex md:hidden" >
85
79
< button onClick = { toggleMobileMenu } type = "button" className = "bg-gray-800 inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white" aria-controls = "mobile-menu" aria-expanded = "false" >
86
80
< span className = "sr-only" > Open main menu</ span >
87
- { ! mobileMenuExpanded && < svg className = "block h-6 w-6" xmlns = "http://www.w3.org/2000/svg" fill = "none" viewBox = "0 0 24 24" stroke = "currentColor" aria-hidden = "true" >
88
- < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = "2" d = "M4 6h16M4 12h16M4 18h16" />
89
- </ svg > }
90
- { mobileMenuExpanded && < svg className = "block h-6 w-6" xmlns = "http://www.w3.org/2000/svg" fill = "none" viewBox = "0 0 24 24" stroke = "currentColor" aria-hidden = "true" >
91
- < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = "2" d = "M6 18L18 6M6 6l12 12" />
92
- </ svg > }
81
+ { ! mobileMenuExpanded && < MenuIcon className = "block h-6 w-6" /> }
82
+ { mobileMenuExpanded && < XIcon className = "block h-6 w-6" /> }
93
83
</ button >
94
84
</ div >
95
85
</ div >
@@ -117,12 +107,6 @@ export default function Shell(props) {
117
107
< div className = "text-base font-medium leading-none text-white" > { session . user . name || session . user . username } </ div >
118
108
< div className = "text-sm font-medium leading-none text-gray-400" > { session . user . email } </ div >
119
109
</ div >
120
- < button className = "ml-auto bg-gray-800 flex-shrink-0 p-1 text-gray-400 rounded-full hover:text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white" >
121
- < span className = "sr-only" > View notifications</ span >
122
- < svg className = "h-6 w-6" xmlns = "http://www.w3.org/2000/svg" fill = "none" viewBox = "0 0 24 24" stroke = "currentColor" aria-hidden = "true" >
123
- < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = "2" d = "M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9" />
124
- </ svg >
125
- </ button >
126
110
</ div >
127
111
< div className = "mt-3 px-2 space-y-1" >
128
112
< Link href = "/settings/profile" >
0 commit comments