Import UI components directly

This commit is contained in:
Jaco Greeff 2017-08-02 17:34:16 +02:00
parent 696089c479
commit f94f69c05c
15 changed files with 36 additions and 16 deletions

View File

@ -21,7 +21,7 @@ import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import UpgradeStore from '@parity/shared/mobx/upgradeParity';
import { Errors } from '@parity/ui';
import Errors from '@parity/ui/Errors';
import Connection from '../Connection';
import DappRequests from '../DappRequests';

View File

@ -19,7 +19,7 @@ import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Input } from '@parity/ui';
import Input from '@parity/ui/Form/Input';
import { CompareIcon, ComputerIcon, DashboardIcon, VpnIcon } from '@parity/ui/Icons';
import styles from './connection.css';

View File

@ -18,7 +18,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { Button } from '@parity/ui';
import Button from '@parity/ui/Button';
import DappsStore from '@parity/shared/mobx/dappsStore';

View File

@ -21,7 +21,10 @@ import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Checkbox, DappCard, Page, SectionList } from '@parity/ui';
import DappCard from '@parity/ui/DappCard';
import Checkbox from '@parity/ui/Form/Checkbox';
import Page from '@parity/ui/Page';
import SectionList from '@parity/ui/SectionList';
import DappsStore from '@parity/shared/mobx/dappsStore';

View File

@ -18,7 +18,7 @@ import { observer } from 'mobx-react';
import React, { Component } from 'react';
import { FormattedMessage } from 'react-intl';
import { Button } from '@parity/ui';
import Button from '@parity/ui/Button';
import { CloseIcon, CheckIcon } from '@parity/ui/Icons';
import Store from '@parity/shared/mobx/extensionStore';

View File

@ -19,7 +19,7 @@ import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import ReactMarkdown from 'react-markdown';
import { Checkbox } from '@parity/ui';
import Checkbox from '@parity/ui/Form/Checkbox';
import styles from '../firstRun.css';

View File

@ -23,7 +23,8 @@ import { bindActionCreators } from 'redux';
import { createIdentityImg } from '@parity/api/util/identity';
import { newError } from '@parity/shared/redux/actions';
import { Button, Portal } from '@parity/ui';
import Button from '@parity/ui/Button';
import Portal from '@parity/ui/Portal';
import { CheckIcon, DoneIcon, NextIcon, PrintIcon, ReplayIcon } from '@parity/ui/Icons';
import ParityLogo from '@parity/shared/assets/images/parity-logo-black-no-text.svg';

View File

@ -24,7 +24,13 @@ import { Link } from 'react-router';
import { connect } from 'react-redux';
import store from 'store';
import { AccountCard, Badge, Button, ContainerTitle, IdentityIcon, SelectionList, StatusIndicator } from '@parity/ui';
import AccountCard from '@parity/ui/AccountCard';
import Badge from '@parity/ui/Badge';
import Button from '@parity/ui/Button';
import ContainerTitle from '@parity/ui/Container/Title';
import IdentityIcon from '@parity/ui/IdentityIcon';
import SelectionList from '@parity/ui/SectionList';
import StatusIndicator from '@parity/ui/StatusIndicator';
import { CancelIcon, FingerprintIcon } from '@parity/ui/Icons';
import imagesEthcoreBlock from '@parity/shared/assets/images/parity-logo-white-no-text.svg';

View File

@ -22,7 +22,11 @@ import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { hideRequest } from '@parity/shared/redux/providers/requestsActions';
import { MethodDecoding, IdentityIcon, Progress, ScrollableText, ShortenedHash } from '@parity/ui';
import MethodDecoding from '@parity/ui/MethodDecoding';
import IdentityIcon from '@parity/ui/IdentityIcon';
import Progress from '@parity/ui/Progress';
import ScrollableText from '@parity/ui/ScrollableText';
import ShortenedHash from '@parity/ui/ShortenedHash';
import styles from './requests.css';

View File

@ -22,7 +22,7 @@ import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as RequestsActions from '@parity/shared/redux/providers/signerActions';
import { Container } from '@parity/ui';
import Container from '@parity/ui/Container';
import RequestPending from '@parity/ui/Signer/RequestPending';
import Store from '@parity/shared/mobx/signerStore';

View File

@ -20,7 +20,7 @@ import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { closeSnackbar } from '@parity/shared/redux/providers/snackbarActions';
import { Snackbar as SnackbarUI } from '@parity/ui';
import SnackbarUI from '@parity/ui/Snackbar';
function Snackbar ({ closeSnackbar, cooldown = 3500, message, open = false }) {
return (

View File

@ -19,7 +19,11 @@ import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import { FormattedMessage } from 'react-intl';
import { BlockNumber, ClientVersion, NetChain, NetPeers, StatusIndicator } from '@parity/ui';
import BlockNumber from '@parity/ui/BlockNumber';
import ClientVersion from '@parity/ui/ClientVersion';
import NetChain from '@parity/ui/NetChain';
import NetPeers from '@parity/ui/NetPeers';
import StatusIndicator from '@parity/ui/StatusIndicator';
import Consensus from './Consensus';
import Upgrade from './Upgrade';

View File

@ -20,7 +20,9 @@ import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import store from 'store';
import { Button, Checkbox, StatusIndicator } from '@parity/ui';
import Button from '@parity/ui/Button';
import Checkbox from '@parity/ui/Form/Checkbox';
import StatusIndicator from '@parity/ui/StatusIndicator';
import styles from './syncWarning.css';

View File

@ -20,7 +20,8 @@ import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { STEP_COMPLETED, STEP_ERROR, STEP_INFO, STEP_UPDATING } from '@parity/shared/mobx/upgradeParity';
import { Button, Portal } from '@parity/ui';
import Button from '@parity/ui/Button';
import Portal from '@parity/ui/Portal';
import { CancelIcon, DoneIcon, ErrorIcon, NextIcon, UpdateIcon, UpdateWaitIcon } from '@parity/ui/Icons';
import styles from './upgradeParity.css';

View File

@ -15,6 +15,7 @@
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
import 'whatwg-fetch';
// import 'semantic-ui-css/semantic.css';
import es6Promise from 'es6-promise';
es6Promise.polyfill();
@ -32,7 +33,6 @@ import viewsDapps from '@parity/shared/config/dappsViews.json';
import ContractInstances from '@parity/shared/contracts';
import HistoryStore from '@parity/shared/mobx/historyStore';
import { initStore } from '@parity/shared/redux';
import { patchApi } from '@parity/shared/util/tx';
import ContextProvider from '@parity/ui/ContextProvider';
import '@parity/shared/environment';
@ -63,7 +63,6 @@ if (window.location.hash && window.location.hash.indexOf(AUTH_HASH) === 0) {
const uiUrl = window.location.host;
const api = new SecureApi(uiUrl, token);
patchApi(api);
ContractInstances.get(api);
setupProviderFilters(api.provider);