aboutsummaryrefslogtreecommitdiff
path: root/src/PollCard
diff options
context:
space:
mode:
authorilyayudovin <ilyayudovin123.@mail.com>2020-06-07 19:27:32 +0300
committerilyayudovin <ilyayudovin123.@mail.com>2020-06-07 19:27:32 +0300
commit63d8c7cfdc941896e54071f2dce2274d1b602245 (patch)
tree38f0c5020ea05d8cb3c99fdfc4a88564c93afa71 /src/PollCard
parenteea76a129c7e8001eca00037e5915c79ed685169 (diff)
downloadwhich-ui-63d8c7cfdc941896e54071f2dce2274d1b602245.tar.gz
fix: changing px to spacing
Diffstat (limited to 'src/PollCard')
-rw-r--r--src/PollCard/PollCard.tsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/PollCard/PollCard.tsx b/src/PollCard/PollCard.tsx
index 07449fb..27a37a2 100644
--- a/src/PollCard/PollCard.tsx
+++ b/src/PollCard/PollCard.tsx
@@ -14,15 +14,15 @@ interface PercentageBarPropTypes {
which: 'left' | 'right';
}
-const useStyles = makeStyles({
+const useStyles = makeStyles(theme => ({
root: {
- maxWidth: 600,
- height: 500,
+ maxWidth: theme.spacing(75),
+ height: theme.spacing(63),
margin: '20px auto'
},
images: {
- height: 400,
- width: 300
+ height: theme.spacing(50),
+ width: theme.spacing(38)
},
imagesBlock: {
display: 'flex'
@@ -39,7 +39,7 @@ const useStyles = makeStyles({
percentageRight: {
right: 30
}
-});
+}));
const PercentageBar: React.FC<PercentageBarPropTypes> = ({ value, which }) => {