1- // AppHeader.jsx
2- import { GitHubIcon } from "../components/Iconsfile" ;
1+ import { GitHubIcon , LoginIcon , LogoutIcon } from "../components/Iconsfile" ;
32
43export const AppHeader = ( { isAuthenticated, user, onLogout, onLogin, repoUrl, setRepoUrl, oncook } ) => (
54 < header className = "sticky top-0 z-30 bg-white/70 backdrop-blur-xl border-b-2 border-black" >
@@ -30,6 +29,7 @@ export const AppHeader = ({ isAuthenticated, user, onLogout, onLogin, repoUrl, s
3029 </ div >
3130
3231 < div className = "flex items-center gap-4 flex-shrink-0" >
32+ { /* This button correctly keeps the GitHubIcon */ }
3333 < a
3434 href = "https://github.com/herin7/gitforme"
3535 target = "_blank"
@@ -43,29 +43,32 @@ export const AppHeader = ({ isAuthenticated, user, onLogout, onLogin, repoUrl, s
4343 { isAuthenticated ? (
4444 < >
4545 < span className = "font-semibold hidden lg:inline" > Hi, { user ?. username } !</ span >
46- < button onClick = { onLogout } className = "px-3 py-1.5 bg-white border-2 border-black rounded-lg hover:bg-gray-100 transition-colors font-semibold shadow-[3px_3px_0px_rgba(0,0,0,1)] active:shadow-none active:translate-x-0.5 active:translate-y-0.5" >
47- Logout
46+ { /* Added a LogoutIcon for consistency */ }
47+ < button onClick = { onLogout } className = "flex items-center gap-2 px-3 py-1.5 bg-white border-2 border-black rounded-lg hover:bg-gray-100 transition-colors font-semibold shadow-[3px_3px_0px_rgba(0,0,0,1)] active:shadow-none active:translate-x-0.5 active:translate-y-0.5" >
48+ < LogoutIcon />
49+ < span className = "hidden md:inline" > Logout</ span >
4850 </ button >
4951 </ >
5052 ) : (
53+ /* This button now uses the LoginIcon */
5154 < button onClick = { onLogin } className = "flex items-center gap-2 px-3 py-1.5 bg-white border-2 border-black rounded-lg hover:bg-gray-100 transition-colors font-semibold shadow-[3px_3px_0px_rgba(0,0,0,1)] active:shadow-none active:translate-x-0.5 active:translate-y-0.5" >
52- < GitHubIcon />
55+ < LoginIcon />
5356 < span className = "hidden md:inline" > Login</ span >
5457 </ button >
5558 ) }
5659 < div className = "flex flex-col items-center" >
57- < a href = "https://www.producthunt.com/products/gitforme?embed=true& utm_source = badge - featured & utm_medium = badge & utm_source = badge - gitforme " target = "_blank" rel = "noopener noreferrer" >
58- < img
59- src = "https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=995370& theme = neutral & t = 1753038206402 "
60- alt = "GitForme - Understand any GitHub repository in minutes, not days. | Product Hunt"
61- style = { { width : '150px' , height : '35px' } }
62- width = "250"
63- height = "54"
64- />
65- </ a >
66- </ div >
60+ < a href = "https://www.producthunt.com/products/gitforme?embed=true& utm_source = badge - featured & utm_medium = badge & utm_source = badge - gitforme " target = "_blank" rel = "noopener noreferrer" >
61+ < img
62+ src = "https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=995370& theme = neutral "
63+ alt = "GitForme - Understand any GitHub repository in minutes, not days. | Product Hunt"
64+ style = { { width : '150px' , height : '35px' } }
65+ width = "250"
66+ height = "54"
67+ />
68+ </ a >
69+ </ div >
6770 </ div >
6871 </ div >
6972 </ div >
7073 </ header >
71- ) ;
74+ ) ;
0 commit comments