Skip to content
Snippets Groups Projects
Commit 1bb6fd11 authored by Alf Eaton's avatar Alf Eaton
Browse files

Add user icon

parent 90128ca5
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ import React from 'react' ...@@ -2,6 +2,7 @@ import React from 'react'
import { Link } from 'react-router' import { Link } from 'react-router'
import classnames from 'classnames' import classnames from 'classnames'
import classes from './AppBar.local.scss' import classes from './AppBar.local.scss'
import Icon from '../atoms/Icon'
const AppBar = ({ brandLink, brandName, loginLink, logoutLink, userName }) => ( const AppBar = ({ brandLink, brandName, loginLink, logoutLink, userName }) => (
<div className={classes.root}> <div className={classes.root}>
...@@ -10,7 +11,10 @@ const AppBar = ({ brandLink, brandName, loginLink, logoutLink, userName }) => ( ...@@ -10,7 +11,10 @@ const AppBar = ({ brandLink, brandName, loginLink, logoutLink, userName }) => (
<div> <div>
{userName && ( {userName && (
<span className={classes.item}>{userName}</span> <span className={classes.item}>
<Icon size={16}>user</Icon>
<span className={classes.username}>{userName}</span>
</span>
)} )}
{userName ? ( {userName ? (
......
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
color: var(--color-primary); color: var(--color-primary);
&::before { &::before {
// while waiting for the user icon. :D
content: "ʕ•ᴥ•ʔ";
text-align: center; text-align: center;
color: #aaa; color: #aaa;
height: 1em; height: 1em;
...@@ -27,7 +25,13 @@ ...@@ -27,7 +25,13 @@
} }
.item { .item {
padding: 1rem; padding: 0 1rem;
display: inline-flex;
align-items: center;
}
.username {
margin-left: 0.3em;
} }
.logo::before { .logo::before {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment