From 6ecedec4983b00674089d07b55122b545d017688 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 7 Dec 2018 13:51:02 +0300 Subject: Avatar spinner --- vnext/src/components/Avatar.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/vnext/src/components/Avatar.js b/vnext/src/components/Avatar.js index 9cb03267..4c3ac0b6 100644 --- a/vnext/src/components/Avatar.js +++ b/vnext/src/components/Avatar.js @@ -4,13 +4,19 @@ import { Link } from 'react-router-dom'; import { UserType } from './Types'; +import Icon from './Icon'; + const Avatar = React.memo(props => { return (
- - {`${props.user.uname}`} - + { + props.user.uname ? + + {`${props.user.uname}`} + + : + }
-- cgit v1.2.3