Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit b33d2fb

Browse files
committed
use mixins for breakpoints, add logout to nav
1 parent 5735793 commit b33d2fb

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/components/basicElements/Header.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import logo from "../../assets/images/logos/logo.png";
55
import { Nav, Navbar, NavbarBrand, NavDropdown } from "react-bootstrap";
66
import { SystemState } from "../../background/redux/actions/sytemState";
77
import { connect, ConnectedProps } from "react-redux";
8+
import {logout} from "../../background/api/auth";
89

910
export interface navBarElement_Interface {
1011
name: string;
@@ -98,6 +99,13 @@ function Header(props: PropsFromRedux): ReactElement {
9899
>
99100
Profile
100101
</NavDropdown.Item>
102+
<NavDropdown.Item
103+
onClick={(event: any) => {
104+
logout()
105+
}}
106+
>
107+
Logout
108+
</NavDropdown.Item>
101109
</NavDropdown>
102110
</Nav>
103111
)}

src/style/helpers.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,16 @@ root {
2121
background-color: $body-bg;
2222
border-radius: 15px;
2323

24-
@media (min-width: 992px) {
24+
@include media-breakpoint-up(lg) {
2525
width: 50%;
2626
left: 25%;
2727
}
2828

29-
@media (min-width: 1150px) {
29+
@include media-breakpoint-up(xl) {
3030
width: 40%;
3131
left: 30%;
3232
}
33+
3334
@media (max-height: 659px) {
3435
margin-top: 15px;
3536
}
@@ -41,4 +42,4 @@ root {
4142

4243
.login-input {
4344
max-width: 450px;
44-
}
45+
}

0 commit comments

Comments
 (0)