1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

Changed lab gaps and colors

This commit is contained in:
Fedor Katurov 2021-03-30 17:49:17 +07:00
parent 19449f13b4
commit 330fdcf444
8 changed files with 53 additions and 9 deletions

View file

@ -0,0 +1,20 @@
import React, { FC } from 'react';
import { INodeComponentProps } from '~/redux/node/constants';
import styles from './styles.module.scss';
import { Markdown } from '~/components/containers/Markdown';
import { formatText } from '~/utils/dom';
const LabDescription: FC<INodeComponentProps> = ({ node }) => {
if (!node.description) {
return null;
}
return (
<Markdown
className={styles.wrap}
dangerouslySetInnerHTML={{ __html: formatText(node.description) }}
/>
);
};
export { LabDescription };