mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 14:57:54 +00:00
Initial commit
This commit is contained in:
parent
000cc732a6
commit
fe13aaa9e2
18 changed files with 15953 additions and 40 deletions
23
src/Components/Navigation.js
Normal file
23
src/Components/Navigation.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import react from 'react';
|
||||
import * as BS from 'react-bootstrap'
|
||||
|
||||
|
||||
export default function Navigation(props) {
|
||||
|
||||
function logOut() {
|
||||
localStorage.removeItem("token");
|
||||
localStorage.removeItem("user");
|
||||
props.setIsSubmit(false);
|
||||
}
|
||||
|
||||
return (
|
||||
<BS.Navbar bg="light" className="mb-3 " expand="md">
|
||||
<BS.Navbar.Brand>
|
||||
pk-web
|
||||
</BS.Navbar.Brand>
|
||||
<BS.Form inline>
|
||||
{ localStorage.getItem('token') ? <BS.Button className="float-right mr-md-2" variant="primary" onClick={logOut}>Log Out</BS.Button> : "" }
|
||||
</BS.Form>
|
||||
</BS.Navbar>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue