Remove static ID from like checkbox

This commit is contained in:
Maciej Ziarkowski 2019-10-16 20:34:29 +01:00
parent 9d4d24aefc
commit b489b15d8f

View File

@ -28,13 +28,13 @@ const LikeDataEntry: React.FunctionComponent<any> = (props) => { // TODO: remove
: "0 people like this building so far - you could be the first!" : "0 people like this building so far - you could be the first!"
} }
</p> </p>
<input className="form-check-input" type="checkbox" <label className="form-check-label">
id="like_check" name="like" <input className="form-check-input" type="checkbox"
checked={!!props.building_like} name="like"
disabled={props.mode === 'view'} checked={!!props.building_like}
onChange={props.onLike} disabled={props.mode === 'view'}
/> onChange={props.onLike}
<label htmlFor="like_check" className="form-check-label"> />
I like this building and think it contributes to the city! I like this building and think it contributes to the city!
</label> </label>
</Fragment> </Fragment>