2019-08-23 09:09:23 -04:00
|
|
|
import React, { Fragment } from 'react';
|
2019-08-14 14:33:26 -04:00
|
|
|
|
2019-08-14 16:54:00 -04:00
|
|
|
import withCopyEdit from '../data-container';
|
2019-08-14 17:46:35 -04:00
|
|
|
import LikeDataEntry from '../data-components/like-data-entry';
|
2019-08-14 14:33:26 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Like view/edit section
|
|
|
|
*/
|
|
|
|
const LikeView = (props) => (
|
2019-08-23 09:09:23 -04:00
|
|
|
<Fragment>
|
2019-08-14 17:46:35 -04:00
|
|
|
<LikeDataEntry
|
|
|
|
value={props.building.likes_total}
|
|
|
|
user_building_like={props.building_like}
|
|
|
|
/>
|
2019-08-23 09:09:23 -04:00
|
|
|
</Fragment>
|
2019-08-14 14:33:26 -04:00
|
|
|
)
|
|
|
|
const LikeContainer = withCopyEdit(LikeView);
|
|
|
|
|
|
|
|
export default LikeContainer;
|