remove consoles
This commit is contained in:
parent
25b9877f3a
commit
781e9cdb79
@ -339,7 +339,6 @@ function LocationDetail() {
|
|||||||
<div className={'ratingInput'} style={currentUserReview ? { margin: '0 0 10px' } : { margin: '5px 0 10px' }}>
|
<div className={'ratingInput'} style={currentUserReview ? { margin: '0 0 10px' } : { margin: '5px 0 10px' }}>
|
||||||
{currentUserReview ?
|
{currentUserReview ?
|
||||||
<div style={{ display: 'inline-block' }}>
|
<div style={{ display: 'inline-block' }}>
|
||||||
{console.log(currentUserReview)}
|
|
||||||
<p className={'ml-2'}>{currentUserReview.score}</p>
|
<p className={'ml-2'}>{currentUserReview.score}</p>
|
||||||
<div style={{ height: 4, width: 35, backgroundColor: "#72767d" }}>
|
<div style={{ height: 4, width: 35, backgroundColor: "#72767d" }}>
|
||||||
<div style={{ height: 4, width: `${currentUserReview.score}%`, backgroundColor: 'green' }} />
|
<div style={{ height: 4, width: `${currentUserReview.score}%`, backgroundColor: 'green' }} />
|
||||||
|
@ -206,7 +206,6 @@ function UserProfile() {
|
|||||||
{Object.entries(userStats.scores_distribution[0]).map(x => (
|
{Object.entries(userStats.scores_distribution[0]).map(x => (
|
||||||
<div style={{ height: 15, margin: '5px 0'}}>
|
<div style={{ height: 15, margin: '5px 0'}}>
|
||||||
<div style={{ float: 'left', marginRight: 5, width: 40, fontSize: 11, textAlign: 'center' }}>{scoreDistributionLabel(x[0])}</div>
|
<div style={{ float: 'left', marginRight: 5, width: 40, fontSize: 11, textAlign: 'center' }}>{scoreDistributionLabel(x[0])}</div>
|
||||||
{console.log(x[1]/userStats.user_stats.score_count * 100/100)}
|
|
||||||
<div style={{ borderTopRightRadius: 3, borderBottomRightRadius: 3, height: 13, float: 'left', marginRight: 5, minWidth: 1, backgroundColor: '#0be881', width: `calc(${x[1]/userStats.user_stats.score_count * 100}%/2)` }}></div>
|
<div style={{ borderTopRightRadius: 3, borderBottomRightRadius: 3, height: 13, float: 'left', marginRight: 5, minWidth: 1, backgroundColor: '#0be881', width: `calc(${x[1]/userStats.user_stats.score_count * 100}%/2)` }}></div>
|
||||||
<div style={{ float: 'left', fontSize: 11 }}>{x[1]}</div>
|
<div style={{ float: 'left', fontSize: 11 }}>{x[1]}</div>
|
||||||
<br style={{ clear: 'both' }} />
|
<br style={{ clear: 'both' }} />
|
||||||
|
Loading…
Reference in New Issue
Block a user