aboutsummaryrefslogtreecommitdiff
path: root/src/PollCard
diff options
context:
space:
mode:
authorilyayudovin <46264063+ilyayudovin@users.noreply.github.com>2020-06-12 20:00:50 +0300
committerGitHub <noreply@github.com>2020-06-12 20:00:50 +0300
commit57a2ff3cfa7eae111bb8f46447198586c47425fb (patch)
tree14c1bda2c6d42b5792cb7bf070b07df316c10825 /src/PollCard
parentf0f192e09993eedc2c9596bcdb520a96f5cfacdb (diff)
parent0d878909fe17311910f2ba13e203bdfa1bc72a1e (diff)
downloadwhich-ui-57a2ff3cfa7eae111bb8f46447198586c47425fb.tar.gz
Merge pull request #27 from ilyayudovin/profileInfo
ProfileInfo integration
Diffstat (limited to 'src/PollCard')
-rw-r--r--src/PollCard/PollCard.tsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/PollCard/PollCard.tsx b/src/PollCard/PollCard.tsx
index 588714a..b639f25 100644
--- a/src/PollCard/PollCard.tsx
+++ b/src/PollCard/PollCard.tsx
@@ -35,7 +35,8 @@ const useStyles = makeStyles(theme => ({
position: 'absolute',
color: 'white',
top: '86%',
- fontSize: 20
+ fontSize: 20,
+ textShadow: '0 0 3px black'
},
percentageLeft: {
left: 30
@@ -71,9 +72,7 @@ const PollCard: React.FC<PropTypes> = ({ poll }) => {
<Card className={classes.root}>
<CardHeader
avatar={(
- <Avatar aria-label="avatar">
- <img src={author.avatarUrl} alt={author.name[0].toUpperCase()} />
- </Avatar>
+ <Avatar aria-label="avatar" src={author.avatarUrl} alt={author.name[0].toUpperCase()} />
)}
title={author.name}
/>