1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 09:18:09 +00:00

Removed classNames

This commit is contained in:
Vladimir Volek 2018-09-05 13:36:19 +02:00
parent a29b13789d
commit 516e7f77dc
9 changed files with 16 additions and 23 deletions

View File

@ -307,7 +307,7 @@ export default class PinModal extends Component<Props, State> {
onBlur={() => this.onPassphraseBlur('revision')}
tabIndex="2"
/>
{!match && passphraseRevisionTouched && <PassphraseError className="error">Passphrases do not match</PassphraseError> }
{!match && passphraseRevisionTouched && <PassphraseError>Passphrases do not match</PassphraseError> }
</Row>
) }
<Row>

View File

@ -1,6 +1,5 @@
/* @flow */
import { createStore, applyMiddleware, compose } from 'redux';
import { routerMiddleware, push } from 'react-router-redux';
import thunk from 'redux-thunk';

View File

@ -89,11 +89,7 @@ class ConnectDevice extends Component<Props> {
{this.props.showWebUsb && (
<React.Fragment>
<P>and</P>
<Button
className="trezor-webusb-button"
isWebUsb
>Check for devices
</Button>
<Button isWebUsb>Check for devices</Button>
</React.Fragment>
)}
</Wrapper>

View File

@ -95,7 +95,7 @@ export default (props: Props) => {
<Notification
title="Initialization error"
message="Config files are missing"
className="error"
type="error"
/>
)}
<Notifications />

View File

@ -202,7 +202,6 @@ const AccountMenu = (props: Props): ?React$Element<string> => {
} else {
discoveryStatus = (
<Tooltip
arrowContent={<div className="rc-tooltip-arrow-inner" />}
content={<React.Fragment>To add a new account, last account must have some transactions.</React.Fragment>}
placement="bottom"
>

View File

@ -42,7 +42,7 @@ const TopNavigationAccount = (props: any) => {
const basePath = `/device/${urlParams.device}/network/${urlParams.network}/account/${urlParams.account}`;
return (
<Wrapper className="account-tabs">
<Wrapper>
<StyledNavLink exact to={`${basePath}`}>Summary</StyledNavLink>
<StyledNavLink to={`${basePath}/send`}>Send</StyledNavLink>
<StyledNavLink to={`${basePath}/receive`}>Receive</StyledNavLink>

View File

@ -1,10 +1,9 @@
/* @flow */
import styled from 'styled-components';
import React, { Component } from 'react';
import { NavLink } from 'react-router-dom';
type Props = {
pathname: string;
}
@ -15,14 +14,16 @@ type State = {
};
}
const Wrapper = styled.div``;
const AccountTabs = (props: any): any => {
const urlParams = props.match.params;
const basePath = `/device/${urlParams.device}/network/${urlParams.network}/account/${urlParams.account}`;
return (
<div className="account-tabs">
<a>Device settings</a>
</div>
<Wrapper>
Device settings
</Wrapper>
);
};

View File

@ -183,7 +183,6 @@ const AccountReceive = (props: Props) => {
)}
{(addressVerified || addressUnverified) && (
<QRCode
className="qr"
bgColor="#FFFFFF"
fgColor="#000000"
level="Q"

View File

@ -1,14 +1,13 @@
/* @flow */
import styled from 'styled-components';
import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
const Wrapper = styled.div``;
const WalletSettings = () => (
<section className="settings">
<Wrapper>
Wallet settings
</section>
</Wrapper>
);
export default connect(null, null)(WalletSettings);