mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56: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,11 @@
|
|||
import React, { FC, useCallback, useState } from 'react';
|
||||
|
||||
import { path } from 'ramda';
|
||||
import { Manager, Popper, Reference } from 'react-popper';
|
||||
|
||||
import { Avatar } from '~/components/common/Avatar';
|
||||
import { useRandomPhrase } from '~/constants/phrases';
|
||||
import { IUser } from '~/types/auth';
|
||||
import { path } from '~/utils/ramda';
|
||||
|
||||
import styles from './styles.module.scss';
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@ import React, { createElement, FC, Fragment, memo, useCallback, useMemo, useStat
|
|||
|
||||
import classnames from 'classnames';
|
||||
import classNames from 'classnames';
|
||||
import { append, assocPath, path } from 'ramda';
|
||||
import reduce from 'ramda/es/reduce';
|
||||
|
||||
import { CommentForm } from '~/components/comment/CommentForm';
|
||||
import { Group } from '~/components/containers/Group';
|
||||
|
@ -13,14 +11,12 @@ import { UploadType } from '~/constants/uploads';
|
|||
import { PRESETS } from '~/constants/urls';
|
||||
import { IComment, IFile } from '~/types';
|
||||
import { formatCommentText, getPrettyDate, getURL } from '~/utils/dom';
|
||||
import { append, assocPath, path, reduce } from '~/utils/ramda';
|
||||
|
||||
import { CommentMenu } from '../CommentMenu';
|
||||
|
||||
import styles from './styles.module.scss';
|
||||
|
||||
|
||||
|
||||
|
||||
interface IProps {
|
||||
nodeId: number;
|
||||
comment: IComment;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue