1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-05-18 08:04:47 +07:00

fixed ramda imports to reduce bundle size

This commit is contained in:
Fedor Katurov 2022-01-25 11:24:42 +07:00
parent a497912049
commit 097b091abd
47 changed files with 208 additions and 91 deletions
src/components/lab/LabText

View file

@ -1,16 +1,14 @@
import React, { FC, useMemo } from 'react';
import { path } from 'ramda';
import { Markdown } from '~/components/containers/Markdown';
import { Paragraph } from '~/components/placeholders/Paragraph';
import { INodeComponentProps } from '~/constants/node';
import { useGotoNode } from '~/hooks/node/useGotoNode';
import { formatTextParagraphs } from '~/utils/dom';
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,