mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
Fixed bunch of eslitn errors 2
This commit is contained in:
parent
288a81775d
commit
f5ddddc1fb
@ -59,6 +59,7 @@
|
||||
"trezor-connect": "5.0.30",
|
||||
"web3": "^0.19.0",
|
||||
"webpack": "^4.16.3",
|
||||
"webpack-bundle-analyzer": "^2.13.1",
|
||||
"whatwg-fetch": "^2.0.4",
|
||||
"yarn-run-all": "^3.1.1"
|
||||
},
|
||||
@ -96,7 +97,6 @@
|
||||
"stylelint-custom-processor-loader": "^0.5.0",
|
||||
"stylelint-processor-styled-components": "^1.3.2",
|
||||
"stylelint-webpack-plugin": "^0.10.5",
|
||||
"webpack-bundle-analyzer": "^2.13.1",
|
||||
"webpack-cli": "^2.1.3",
|
||||
"webpack-dev-server": "^3.1.4",
|
||||
"yargs": "11.0.0"
|
||||
|
7
src/support/PropTypes.js
Normal file
7
src/support/PropTypes.js
Normal file
@ -0,0 +1,7 @@
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
export const DEVICE_PROP_TYPES = PropTypes.shape({
|
||||
id: PropTypes.number.isRequired,
|
||||
text: PropTypes.string.isRequired,
|
||||
author: authorPropType.isRequired,
|
||||
});
|
@ -1,4 +1,4 @@
|
||||
import styled, { css } from 'styled-components';
|
||||
import styled from 'styled-components';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
|
@ -1,30 +1,12 @@
|
||||
/* @flow */
|
||||
|
||||
import styled from 'styled-components';
|
||||
import React, { Component } from 'react';
|
||||
import { NavLink } from 'react-router-dom';
|
||||
|
||||
type Props = {
|
||||
pathname: string;
|
||||
}
|
||||
type State = {
|
||||
style: {
|
||||
width: number,
|
||||
left: number
|
||||
};
|
||||
}
|
||||
import React from 'react';
|
||||
|
||||
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 (
|
||||
const AccountTabs = () => (
|
||||
<Wrapper>
|
||||
Device settings
|
||||
</Wrapper>
|
||||
);
|
||||
};
|
||||
);
|
||||
|
||||
export default AccountTabs;
|
@ -6,8 +6,8 @@ import styled from 'styled-components';
|
||||
import { connect } from 'react-redux';
|
||||
import { Route, withRouter } from 'react-router-dom';
|
||||
|
||||
import type { MapStateToProps, MapDispatchToProps } from 'react-redux';
|
||||
import type { State, Dispatch } from 'flowtype';
|
||||
import type { MapStateToProps } from 'react-redux';
|
||||
import type { State } from 'flowtype';
|
||||
|
||||
import Header from 'components/Header';
|
||||
import Footer from 'components/Footer';
|
||||
|
@ -17,12 +17,6 @@ type Props = {
|
||||
network: Coin
|
||||
}
|
||||
|
||||
type Style = {
|
||||
+color: string,
|
||||
+background: string,
|
||||
+borderColor: string
|
||||
}
|
||||
|
||||
const Wrapper = styled.div`
|
||||
border-top: 1px solid ${colors.DIVIDER};
|
||||
`;
|
||||
|
@ -26,7 +26,7 @@ type DispatchProps = BaseDispatchProps & {
|
||||
|
||||
export type Props = StateProps & BaseStateProps & DispatchProps & BaseDispatchProps;
|
||||
|
||||
const mapStateToProps: MapStateToProps<State, OwnProps, StateProps> = (state: State, own: OwnProps): StateProps => ({
|
||||
const mapStateToProps: MapStateToProps<State, OwnProps, StateProps> = (state: State): StateProps => ({
|
||||
className: 'summary',
|
||||
selectedAccount: state.selectedAccount,
|
||||
wallet: state.wallet,
|
||||
|
@ -12,12 +12,7 @@ import type { State, Dispatch } from 'flowtype';
|
||||
|
||||
const Wrapper = styled.div``;
|
||||
|
||||
type Props = {
|
||||
acquiring: boolean;
|
||||
acquireDevice: typeof TrezorConnectActions.acquire
|
||||
}
|
||||
|
||||
const UnreadableDevice = (props: Props) => (
|
||||
const UnreadableDevice = () => (
|
||||
<Wrapper>
|
||||
<Notification
|
||||
title="Unreadable device"
|
||||
|
Loading…
Reference in New Issue
Block a user