Enforce some naming conventions (#4813)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-03-01 13:06:53 -05:00
1 parent dc6615f98f
commit 0b32775d40
197 files changed
+630 -634

No files matched your search

@@ -19,15 +19,15 @@ DOMPurify.addHook("afterSanitizeAttributes", function (node) {
}
});
interface Props extends OptionalProps {
export interface MarkdownViewerProps extends OptionalProps {
markdown: string;
}
interface OptionalProps {
export interface OptionalProps {
className?: string;
}
export class MarkdownViewer extends Component<Props> {
export class MarkdownViewer extends Component<MarkdownViewerProps> {
render() {
const { className, markdown } = this.props;
const html = DOMPurify.sanitize(marked(markdown));