mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
reoptimized imports
This commit is contained in:
parent
6a6985c39b
commit
78a48007bc
5 changed files with 84 additions and 98 deletions
|
@ -1,21 +1,21 @@
|
|||
import React, {createElement, FC, FormEvent, useCallback, useEffect, useState} from 'react';
|
||||
import {connect} from 'react-redux';
|
||||
import {IDialogProps} from '~/redux/modal/constants';
|
||||
import {useCloseOnEscape} from '~/utils/hooks';
|
||||
import {Group} from '~/components/containers/Group';
|
||||
import {InputText} from '~/components/input/InputText';
|
||||
import {Button} from '~/components/input/Button';
|
||||
import {Padder} from '~/components/containers/Padder';
|
||||
import React, { createElement, FC, FormEvent, useCallback, useEffect, useState } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import { IDialogProps } from '~/redux/modal/constants';
|
||||
import { useCloseOnEscape } from '~/utils/hooks';
|
||||
import { Group } from '~/components/containers/Group';
|
||||
import { InputText } from '~/components/input/InputText';
|
||||
import { Button } from '~/components/input/Button';
|
||||
import { Padder } from '~/components/containers/Padder';
|
||||
import styles from './styles.module.scss';
|
||||
import {selectNode} from '~/redux/node/selectors';
|
||||
import {EditorPanel} from '~/components/editors/EditorPanel';
|
||||
import { selectNode } from '~/redux/node/selectors';
|
||||
import { EditorPanel } from '~/components/editors/EditorPanel';
|
||||
import * as NODE_ACTIONS from '~/redux/node/actions';
|
||||
import {selectUploads} from '~/redux/uploads/selectors';
|
||||
import {ERROR_LITERAL} from '~/constants/errors';
|
||||
import {EMPTY_NODE, NODE_EDITORS} from '~/redux/node/constants';
|
||||
import {BetterScrollDialog} from '../BetterScrollDialog';
|
||||
import {CoverBackdrop} from '~/components/containers/CoverBackdrop';
|
||||
import {IEditorComponentProps} from '~/redux/node/types';
|
||||
import { selectUploads } from '~/redux/uploads/selectors';
|
||||
import { ERROR_LITERAL } from '~/constants/errors';
|
||||
import { EMPTY_NODE, NODE_EDITORS } from '~/redux/node/constants';
|
||||
import { BetterScrollDialog } from '../BetterScrollDialog';
|
||||
import { CoverBackdrop } from '~/components/containers/CoverBackdrop';
|
||||
import { IEditorComponentProps } from '~/redux/node/types';
|
||||
|
||||
const mapStateToProps = state => {
|
||||
const { editor, errors } = selectNode(state);
|
||||
|
|
|
@ -99,6 +99,7 @@ const LoginDialogUnconnected: FC<IProps> = ({
|
|||
error={error}
|
||||
onClose={onRequestClose}
|
||||
footer={<LoginDialogButtons openOauthWindow={openOauthWindow} />}
|
||||
backdrop={<div className={styles.backdrop} />}
|
||||
>
|
||||
<Padder>
|
||||
<div className={styles.wrap}>
|
||||
|
|
|
@ -45,3 +45,11 @@ $vk_color: $secondary_color;
|
|||
color: lighten($content_bg, 40%);
|
||||
}
|
||||
}
|
||||
|
||||
.backdrop {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue