diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-06-28 04:14:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-28 04:14:02 +0300 |
commit | 2f1ee1baab72be2ae38a921a7c0da7ce6e03fbc1 (patch) | |
tree | 3fdca2db655c80907cdef7ac3fdfabed6f78a5ec /src/pages | |
parent | 5057fe763d423be607336d6b839909843c5a2567 (diff) | |
parent | ea9920d9ed0e7b3a3e565623e434e75bd3362f02 (diff) | |
download | which-ui-2f1ee1baab72be2ae38a921a7c0da7ce6e03fbc1.tar.gz |
Merge pull request #50 from which-ecosystem/search
SearchBar functionality
Diffstat (limited to 'src/pages')
-rw-r--r-- | src/pages/ProfilePage/ProfileInfo.tsx | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/pages/ProfilePage/ProfileInfo.tsx b/src/pages/ProfilePage/ProfileInfo.tsx index f52e374..2b9227e 100644 --- a/src/pages/ProfilePage/ProfileInfo.tsx +++ b/src/pages/ProfilePage/ProfileInfo.tsx @@ -1,8 +1,9 @@ import React, { useState } from 'react'; -import { Avatar, Badge } from '@material-ui/core/'; +import { Avatar, Badge, Typography } from '@material-ui/core/'; import { makeStyles } from '@material-ui/core/styles'; import { User } from 'which-types'; import CameraAltIcon from '@material-ui/icons/CameraAlt'; +import VerifiedIcon from '@material-ui/icons/CheckCircleOutline'; import MoreMenu from './MoreMenu'; import Highlight from './Highlight'; import UploadImage from '../../components/UploadImage/UploadImage'; @@ -27,9 +28,15 @@ const useStyles = makeStyles(theme => ({ margin: '0 auto' }, name: { - fontSize: 20, - textAlign: 'center', - margin: '10px 0' + margin: theme.spacing(1, 0), + display: 'flex', + alignItems: 'center', + justifyContent: 'center' + }, + verified: { + marginLeft: theme.spacing(0.5), + width: theme.spacing(3), + height: theme.spacing(3) }, profileMenu: { display: 'flex', @@ -110,13 +117,14 @@ const ProfileInfo: React.FC<PropTypes> = ({ ) : <Avatar className={classes.avatar} src={user?.avatarUrl} /> } - <div className={classes.name}> + <Typography variant="h5" className={classes.name}> {user?.username} - </div> + {user?.verified && <VerifiedIcon className={classes.verified} color="primary" />} + </Typography> <div className={classes.profileMenu}> <Highlight text="Polls" value={savedPolls} /> <Highlight text="Since" value={dateSince} /> - <Highlight text="Total" value={totalVotes} /> + <Highlight text="Total votes" value={totalVotes} /> </div> </div> ); |