commit
903208f059
@ -32,7 +32,7 @@ const LikeDataEntry: React.FunctionComponent<any> = (props) => { // TODO: remove
|
||||
id="like" name="like"
|
||||
checked={!!props.building_like}
|
||||
disabled={props.mode === 'view'}
|
||||
onChange={props.handleLike}
|
||||
onChange={props.onLike}
|
||||
/>
|
||||
<label htmlFor="like" className="form-check-label">
|
||||
I like this building and think it contributes to the city!
|
||||
|
@ -221,6 +221,7 @@ const withCopyEdit = (WrappedComponent) => {
|
||||
}
|
||||
<WrappedComponent
|
||||
building={this.state.building}
|
||||
building_like={this.props.building_like}
|
||||
mode={this.props.mode}
|
||||
copy={copy}
|
||||
onChange={this.handleChange}
|
||||
|
@ -12,7 +12,7 @@ const LikeView = (props) => (
|
||||
value={props.building.likes_total}
|
||||
mode={props.mode}
|
||||
onLike={props.onLike}
|
||||
user_building_like={props.building_like}
|
||||
building_like={props.building_like}
|
||||
/>
|
||||
</Fragment>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user