Add website to mono repo, update packages to align with existing sub-packages, use new subscribeAsync 0x.js method
This commit is contained in:
24
packages/website/ts/pages/documentation/comment.tsx
Normal file
24
packages/website/ts/pages/documentation/comment.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import * as _ from 'lodash';
|
||||
import * as React from 'react';
|
||||
import * as ReactMarkdown from 'react-markdown';
|
||||
import {MarkdownCodeBlock} from 'ts/pages/shared/markdown_code_block';
|
||||
|
||||
interface CommentProps {
|
||||
comment: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const defaultProps = {
|
||||
className: '',
|
||||
};
|
||||
|
||||
export const Comment: React.SFC<CommentProps> = (props: CommentProps) => {
|
||||
return (
|
||||
<div className={`${props.className} comment`}>
|
||||
<ReactMarkdown
|
||||
source={props.comment}
|
||||
renderers={{CodeBlock: MarkdownCodeBlock}}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
Reference in New Issue
Block a user