mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
implemented logout and rename login module to auth
This commit is contained in:
@@ -1,15 +1,22 @@
|
||||
//@flow
|
||||
import React from "react";
|
||||
import PrimaryNavigationLink from "./PrimaryNavigationLink";
|
||||
import PrimaryNavigationAction from "./PrimaryNavigationAction";
|
||||
|
||||
type Props = {};
|
||||
type Props = {
|
||||
onLogout: () => void
|
||||
};
|
||||
|
||||
class PrimaryNavigation extends React.Component<Props> {
|
||||
render() {
|
||||
return (
|
||||
<nav className="tabs is-boxed">
|
||||
<ul>
|
||||
<PrimaryNavigationLink to="/users">Users</PrimaryNavigationLink>
|
||||
<PrimaryNavigationLink to="/users" label="Users" />
|
||||
<PrimaryNavigationAction
|
||||
onClick={this.props.onLogout}
|
||||
label="Logout"
|
||||
/>
|
||||
</ul>
|
||||
</nav>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user