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