mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
optimized imports
This commit is contained in:
parent
8d2b56cafc
commit
77af1ab05a
58 changed files with 167 additions and 228 deletions
|
@ -1,4 +1,4 @@
|
|||
import axios, { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
||||
import axios, { AxiosRequestConfig, AxiosResponse } from 'axios';
|
||||
import { push } from 'connected-react-router';
|
||||
import { API } from '~/constants/api';
|
||||
import { store } from '~/redux/store';
|
||||
|
|
|
@ -10,11 +10,11 @@ import { COMMENT_BLOCK_DETECTORS, COMMENT_BLOCK_TYPES, ICommentBlock } from '~/c
|
|||
import format from 'date-fns/format';
|
||||
import { pipe } from 'ramda';
|
||||
import {
|
||||
formatTextDash,
|
||||
formatExclamations,
|
||||
formatTextMarkdown,
|
||||
formatTextClickableUsernames,
|
||||
formatTextComments,
|
||||
formatTextDash,
|
||||
formatTextMarkdown,
|
||||
formatTextSanitizeTags,
|
||||
formatTextSanitizeYoutube,
|
||||
formatTextTodos,
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
import { curry } from 'ramda';
|
||||
import { insert } from 'ramda';
|
||||
import { nth } from 'ramda';
|
||||
import { remove } from 'ramda';
|
||||
import { ICommentGroup, IComment } from '~/redux/types';
|
||||
import { path } from 'ramda';
|
||||
import { curry, insert, nth, path, remove } from 'ramda';
|
||||
import { IComment, ICommentGroup } from '~/redux/types';
|
||||
import { isAfter, isValid, parseISO } from 'date-fns';
|
||||
|
||||
export const moveArrItem = curry((at, to, list) => insert(to, nth(at, list), remove(at, 1, list)));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { ERRORS, ERROR_LITERAL } from '~/constants/errors';
|
||||
import { ERROR_LITERAL, ERRORS } from '~/constants/errors';
|
||||
import { ValueOf } from '~/redux/types';
|
||||
|
||||
export const t = (string: ValueOf<typeof ERRORS>): ValueOf<typeof ERROR_LITERAL> =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue