Add website to mono repo, update packages to align with existing sub-packages, use new subscribeAsync 0x.js method
This commit is contained in:
20
packages/website/ts/pages/shared/markdown_code_block.tsx
Normal file
20
packages/website/ts/pages/shared/markdown_code_block.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import * as _ from 'lodash';
|
||||
import * as React from 'react';
|
||||
import * as HighLight from 'react-highlight';
|
||||
|
||||
interface MarkdownCodeBlockProps {
|
||||
literal: string;
|
||||
language: string;
|
||||
}
|
||||
|
||||
export function MarkdownCodeBlock(props: MarkdownCodeBlockProps) {
|
||||
return (
|
||||
<span style={{fontSize: 16}}>
|
||||
<HighLight
|
||||
className={props.language || 'js'}
|
||||
>
|
||||
{props.literal}
|
||||
</HighLight>
|
||||
</span>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user