mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-26 05:16:41 +07:00
fixed ramda imports to reduce bundle size
This commit is contained in:
parent
a497912049
commit
097b091abd
47 changed files with 208 additions and 91 deletions
|
@ -1,11 +1,10 @@
|
|||
import React, { FC } from 'react';
|
||||
|
||||
import { path } from 'ramda';
|
||||
|
||||
import { INodeComponentProps } from '~/constants/node';
|
||||
import { PRESETS } from '~/constants/urls';
|
||||
import { useNodeImages } from '~/hooks/node/useNodeImages';
|
||||
import { getURL } from '~/utils/dom';
|
||||
import { path } from '~/utils/ramda';
|
||||
|
||||
import styles from './styles.module.scss';
|
||||
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
import React, { FC, memo } from 'react';
|
||||
|
||||
import classNames from 'classnames';
|
||||
import range from 'ramda/es/range';
|
||||
|
||||
import { Group } from '~/components/containers/Group';
|
||||
import cell_style from '~/components/node/NodeRelatedItem/styles.module.scss';
|
||||
import { Placeholder } from '~/components/placeholders/Placeholder';
|
||||
import { range } from '~/utils/ramda';
|
||||
|
||||
import styles from './styles.module.scss';
|
||||
|
||||
|
||||
interface IProps {}
|
||||
|
||||
const NodeRelatedPlaceholder: FC<IProps> = memo(() => {
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
import React, { FC, useMemo } from 'react';
|
||||
|
||||
import classNames from 'classnames';
|
||||
import { path } from 'ramda';
|
||||
|
||||
import { INodeComponentProps } from '~/constants/node';
|
||||
import markdown from '~/styles/common/markdown.module.scss';
|
||||
import { formatTextParagraphs } from '~/utils/dom';
|
||||
import { path } from '~/utils/ramda';
|
||||
|
||||
import styles from './styles.module.scss';
|
||||
|
||||
|
||||
interface IProps extends INodeComponentProps {}
|
||||
|
||||
const NodeTextBlock: FC<IProps> = ({ node }) => {
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
import React, { FC, useMemo } from 'react';
|
||||
|
||||
import { path } from 'ramda';
|
||||
|
||||
import { INodeComponentProps } from '~/constants/node';
|
||||
import { path } from '~/utils/ramda';
|
||||
|
||||
import styles from './styles.module.scss';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue