make slider tooltip display quadratic

This commit is contained in:
Barry Gitarts 2018-06-27 15:50:08 -04:00
parent 2422420282
commit 06a6cceb46
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class Poll extends PureComponent {
Number of voters: {_voters} Number of voters: {_voters}
</Typography> </Typography>
</CardContent> </CardContent>
<Tooltip id="tooltip-icon" placement="top" title={`${value} SNT`}> <Tooltip id="tooltip-icon" placement="top" title={`${value * value} SNT`}>
<CardActions> <CardActions>
<Slider value={value} min={0} max={6} step={1} onChange={this.handleChange} /> <Slider value={value} min={0} max={6} step={1} onChange={this.handleChange} />
<Button variant="contained" color="primary">Vote</Button> <Button variant="contained" color="primary">Vote</Button>