forked from React-Group/interstellar_ai
Merge pull request 'header rewrite v2' (#44) from YasinOnm08/interstellar_ai:main into main
Reviewed-on: https://interstellardevelopment.org/code/code/React-Group/interstellar_ai/pulls/44
This commit is contained in:
commit
2c72090de4
3 changed files with 36 additions and 5 deletions
|
@ -40,7 +40,7 @@ const Header: React.FC<HeaderProps> = ({ onViewChange, showDivs, toggleDivs, sho
|
|||
)}
|
||||
</nav>
|
||||
<button onClick={() => onViewChange('AI')} className="header-button header-logo">
|
||||
<p>1</p>
|
||||
|
||||
</button>
|
||||
<div className="login-button">
|
||||
<Login />
|
||||
|
|
|
@ -53,8 +53,8 @@ const Login: React.FC = () => {
|
|||
return (
|
||||
<div>
|
||||
{/* Login or Settings Button */}
|
||||
|
||||
<button onClick={isLoggedIn ? toggleSettingsPopup : toggleLoginPopup}>
|
||||
|
||||
<button className='header-login-button' onClick={isLoggedIn ? toggleSettingsPopup : toggleLoginPopup}>
|
||||
{isLoggedIn ? 'Settings' : 'Log In'}
|
||||
</button>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue