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

optimized imports

This commit is contained in:
Fedor Katurov 2022-03-23 14:26:14 +07:00
parent 68bab520df
commit 77d59625d1
26 changed files with 6 additions and 49 deletions

View file

@ -12,8 +12,6 @@ import { CommendDeleted } from '../../node/CommendDeleted';
import styles from './styles.module.scss';
type IProps = HTMLAttributes<HTMLDivElement> & {
nodeId: number;
isEmpty?: boolean;

View file

@ -4,7 +4,6 @@ import classNames from 'classnames';
import styles from './styles.module.scss';
type IProps = React.HTMLAttributes<HTMLDivElement> & {
seamless?: boolean;
};

View file

@ -4,7 +4,6 @@ import classNames from 'classnames';
import styles from './styles.module.scss';
type IProps = HTMLAttributes<HTMLDivElement> & {
children: any;
size: number;

View file

@ -4,7 +4,6 @@ import classNames from 'classnames';
import styles from './styles.module.scss';
type IProps = React.HTMLAttributes<HTMLDivElement> & {
padding?: number;
vertical?: boolean;

View file

@ -4,7 +4,6 @@ import classNames from 'classnames';
import styles from './styles.module.scss';
type IProps = HTMLAttributes<HTMLDivElement> & {
seamless?: boolean;
stretchy?: boolean;

View file

@ -3,7 +3,7 @@ import React, { FC, Fragment } from 'react';
import classNames from 'classnames';
import { FlowCell } from '~/components/flow/FlowCell';
import { flowDisplayToPreset, ImagePresets, URLS } from '~/constants/urls';
import { flowDisplayToPreset, URLS } from '~/constants/urls';
import { FlowDisplay, IFlowNode, INode } from '~/types';
import { IUser } from '~/types/auth';
import { getURLFromString } from '~/utils/dom';

View file

@ -12,7 +12,6 @@ import { getPrettyDate } from '~/utils/dom';
import styles from './styles.module.scss';
interface IProps {
node: Partial<INode>;
has_new?: boolean;

View file

@ -10,7 +10,6 @@ import { IInputTextProps } from '~/types';
import styles from './styles.module.scss';
const InputText: FC<IInputTextProps> = ({
className = '',
handler,

View file

@ -8,7 +8,6 @@ import { formatText } from '~/utils/dom';
import styles from './styles.module.scss';
const LabDescription: FC<INodeComponentProps> = ({ node, isLoading }) => {
const onClick = useGotoNode(node.id);

View file

@ -11,8 +11,6 @@ import { INode } from '~/types';
import styles from './styles.module.scss';
interface IProps {
node: INode;
lastSeen: string | null | undefined;

View file

@ -1,12 +1,8 @@
import React, { FC, useCallback } from 'react';
import { Anchor } from '~/components/common/Anchor';
import React, { FC } from 'react';
import { Pressable } from '~/components/common/Pressable';
import { SubTitle } from '~/components/common/SubTitle';
import { NodeRelated } from '~/components/node/NodeRelated';
import { NodeRelatedPlaceholder } from '~/components/node/NodeRelated/placeholder';
import { Dialog } from '~/constants/modal';
import { URLS } from '~/constants/urls';
import { useShowModal } from '~/hooks/modal/useShowModal';
import { INode } from '~/types';
import { INodeRelated } from '~/types/node';

View file

@ -11,8 +11,6 @@ import { useProfileContext } from '~/utils/providers/ProfileProvider';
import styles from './styles.module.scss';
const ProfileDescription: FC = () => {
const { profile, isLoading } = useProfileContext();
const { user } = useUser();