colouring-montreal/app/src/frontend/building/data-containers/like.tsx

22 lines
522 B
TypeScript
Raw Normal View History

2019-08-23 09:09:23 -04:00
import React, { Fragment } from 'react';
import withCopyEdit from '../data-container';
2019-08-14 17:46:35 -04:00
import LikeDataEntry from '../data-components/like-data-entry';
/**
* 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}
mode={props.mode}
onLike={props.onLike}
building_like={props.building_like}
2019-08-14 17:46:35 -04:00
/>
2019-08-23 09:09:23 -04:00
</Fragment>
)
const LikeContainer = withCopyEdit(LikeView);
export default LikeContainer;