UNPKG

adastra-ui-comment

Version:

Testing locally 1) in this file - `npm i` install dependencies - `npm run build` or `npm run tsc` to build your module 2) in childApp - in package.json under dependencies add ui-astra-assets with file:(relativePathToRepo) - "ui-astra-a

17 lines 752 B
import React from 'react'; import Typography from '@material-ui/core/Typography'; export const CommentList = ({ comments }) => { const commentList = comments || []; return (React.createElement("li", null, commentList.map((child, key) => { return (React.createElement(Typography, { style: {}, key: key }, child.message)); }))); }; export class CommentListElement extends React.Component { render() { return (React.createElement("div", { id: "comment_list", style: { maxWidth: 1200, margin: 'auto' } }, this.props.comments.length === 0 ? null : React.createElement(CommentList, { comments: this.props.comments }))); } } export default CommentListElement; //# sourceMappingURL=CommentList.js.map