File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,14 @@ import { Link } from "react-router-dom";
2
2
import { SidebarTrigger } from "./ui/sidebar" ;
3
3
import { Separator } from "./ui/separator" ;
4
4
5
+ function HeaderMenuItem ( { children } : { children : React . ReactNode } ) {
6
+ return (
7
+ < div className = "text-black hover:text-gray-800 font-semibold cursor-pointer text-base px-2 py-1 rounded-md hover:bg-blue-50 transition-colors" >
8
+ { children }
9
+ </ div >
10
+ ) ;
11
+ }
12
+
5
13
export function Header ( { hasError } : { hasError ?: boolean } ) {
6
14
return (
7
15
< header className = "flex-shrink-0 h-16 px-3 items-center flex w-full bg-teal-25 opacity-1 border-b-blue-200 border-b" >
@@ -23,9 +31,7 @@ export function Header({ hasError }: { hasError?: boolean }) {
23
31
</ div >
24
32
< div className = "flex items-center gap-4 mr-16" >
25
33
< div className = "flex items-center relative group" >
26
- < div className = "text-black hover:text-gray-800 font-semibold cursor-pointer text-base px-2 py-1 rounded-md hover:bg-blue-50 transition-colors" >
27
- Certificates
28
- </ div >
34
+ < HeaderMenuItem > Certificates</ HeaderMenuItem >
29
35
< div className = "absolute right-0 top-full mt-2 w-56 bg-white rounded-lg shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50 border border-gray-100" >
30
36
< div className = "py-1" >
31
37
< Link
@@ -44,9 +50,7 @@ export function Header({ hasError }: { hasError?: boolean }) {
44
50
</ div >
45
51
</ div >
46
52
< div className = "flex items-center relative group" >
47
- < div className = "text-black hover:text-gray-800 font-semibold cursor-pointer text-base px-2 py-1 rounded-md hover:bg-blue-50 transition-colors" >
48
- Help
49
- </ div >
53
+ < HeaderMenuItem > Help</ HeaderMenuItem >
50
54
< div className = "absolute right-0 top-full mt-2 w-56 bg-white rounded-lg shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50 border border-gray-100" >
51
55
< div className = "py-1" >
52
56
< Link
You can’t perform that action at this time.
0 commit comments