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:
parent
19449f13b4
commit
330fdcf444
8 changed files with 53 additions and 9 deletions
20
src/components/lab/LabDescription/index.tsx
Normal file
20
src/components/lab/LabDescription/index.tsx
Normal 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 };
|
Loading…
Add table
Add a link
Reference in a new issue