Skip to content
Snippets Groups Projects
Commit 2c4bc04e authored by Tamás Szabó's avatar Tamás Szabó
Browse files

added button group

parent 666b6d52
No related branches found
No related tags found
No related merge requests found
......@@ -31,10 +31,10 @@ const FixedMenu = ({ user }) => (
<Menu.Item className='item'>
{
user.id ?
<div>
<Button as={Link} to='/profile'>Profilom</Button>
<Button onClick={() => this.props.logout()}>Kijelentkezés</Button>
</div>
<Button.Group>
<Button primary as={Link} to='/profile'>Profilom</Button>
<Button onClick={() => this.props.logout()} icon='sign out' />
</Button.Group>
:
<Button href='/api/v1/login/authsch/'>Bejelentkezés</Button>
}
......@@ -97,7 +97,10 @@ class Header extends Component {
<Menu.Item position='right'>
{
this.props.user.id ?
<Button as={Link} to='/profile'>Profil</Button>
<Button.Group>
<Button inverted as={Link} to='/profile'>Profil</Button>
<Button onClick={() => this.props.logout()} icon='sign out' />
</Button.Group>
:
<Button as='a' href='/api/v1/login/authsch/' inverted>
Bejelentkezés
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment