mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
header plugs is back again
This commit is contained in:
parent
f781ecc6aa
commit
5684b4745b
3 changed files with 26 additions and 13 deletions
|
@ -15,6 +15,7 @@ import { pick } from 'ramda';
|
||||||
import { UserButton } from '../UserButton';
|
import { UserButton } from '../UserButton';
|
||||||
import { Icon } from '~/components/input/Icon';
|
import { Icon } from '~/components/input/Icon';
|
||||||
import { Notifications } from '../Notifications';
|
import { Notifications } from '../Notifications';
|
||||||
|
import { URLS } from '~/constants/urls';
|
||||||
|
|
||||||
const mapStateToProps = state => ({
|
const mapStateToProps = state => ({
|
||||||
user: pick(['username', 'is_user', 'photo'])(selectUser(state)),
|
user: pick(['username', 'is_user', 'photo'])(selectUser(state)),
|
||||||
|
@ -42,7 +43,17 @@ const HeaderUnconnected: FC<IProps> = memo(
|
||||||
|
|
||||||
{is_user && (
|
{is_user && (
|
||||||
<div className={style.plugs}>
|
<div className={style.plugs}>
|
||||||
<Notifications />
|
<Link className={style.item} to={URLS.BASE}>
|
||||||
|
FLOW
|
||||||
|
</Link>
|
||||||
|
|
||||||
|
<Link className={style.item} to={URLS.BORIS}>
|
||||||
|
BORIS
|
||||||
|
</Link>
|
||||||
|
|
||||||
|
<div className={style.item}>
|
||||||
|
<Notifications />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
|
@ -17,18 +17,6 @@
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
&::after {
|
|
||||||
content: ' ';
|
|
||||||
margin-left: $spc;
|
|
||||||
background: white;
|
|
||||||
width: 4px;
|
|
||||||
height: $gap;
|
|
||||||
display: block;
|
|
||||||
opacity: 0.2;
|
|
||||||
border-radius: 4px;
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
& > a.item,
|
& > a.item,
|
||||||
& > div.item {
|
& > div.item {
|
||||||
font: $font_16_medium;
|
font: $font_16_medium;
|
||||||
|
@ -50,6 +38,17 @@
|
||||||
padding-left: $spc + $gap;
|
padding-left: $spc + $gap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
content: ' ';
|
||||||
|
margin-left: $spc;
|
||||||
|
background: white;
|
||||||
|
width: 4px;
|
||||||
|
height: $gap;
|
||||||
|
display: block;
|
||||||
|
opacity: 0.2;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
// padding-right: 0;
|
// padding-right: 0;
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,9 @@
|
||||||
fill: white;
|
fill: white;
|
||||||
position: relative;
|
position: relative;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
color: white;
|
||||||
|
word-wrap: initial;
|
||||||
|
white-space: initial;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
.icon {
|
.icon {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue