colouring-montreal/app/src/frontend/building/data-containers/like.tsx
Maciej Ziarkowski 739bcad08a Lint semicolons
2019-11-07 09:13:30 +01:00

24 lines
627 B
TypeScript

import React, { Fragment } from 'react';
import LikeDataEntry from '../data-components/like-data-entry';
import withCopyEdit from '../data-container';
import { CategoryViewProps } from './category-view-props';
/**
* Like view/edit section
*/
const LikeView: React.FunctionComponent<CategoryViewProps> = (props) => (
<Fragment>
<LikeDataEntry
userLike={props.building_like}
totalLikes={props.building.likes_total}
mode={props.mode}
onLike={props.onLike}
/>
</Fragment>
);
const LikeContainer = withCopyEdit(LikeView);
export default LikeContainer;