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!"
}
</p>
<label className="form-check-label">
<input className="form-check-input" type="checkbox"
id="like_check" name="like"
name="like"
checked={!!props.building_like}
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!
</label>
</Fragment>