1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-05-01 15:46:40 +07:00

removed profile sidebar completely

This commit is contained in:
Fedor Katurov 2022-08-12 13:50:35 +07:00
parent fc10dd686b
commit 4a29e11079
20 changed files with 97 additions and 190 deletions

View file

@ -10,9 +10,10 @@ import { path } from '~/utils/ramda';
import styles from './styles.module.scss';
const LabText: FC<INodeComponentProps> = ({ node, isLoading }) => {
const content = useMemo(() => formatTextParagraphs(path(['blocks', 0, 'text'], node) || ''), [
node,
]);
const content = useMemo(
() => formatTextParagraphs(path(['blocks', 0, 'text'], node) || ''),
[node],
);
const onClick = useGotoNode(node.id);
@ -21,11 +22,9 @@ const LabText: FC<INodeComponentProps> = ({ node, isLoading }) => {
<Paragraph lines={5} />
</div>
) : (
<Markdown
dangerouslySetInnerHTML={{ __html: content }}
className={styles.wrap}
onClick={onClick}
/>
<Markdown className={styles.wrap} onClick={onClick}>
{content}
</Markdown>
);
};