Skip to content

Commit

Permalink
feat(exchange-promo): merge dev and fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
schnogz committed Apr 20, 2020
2 parents e2ccf35 + a353396 commit 8484a05
Show file tree
Hide file tree
Showing 173 changed files with 4,362 additions and 6,078 deletions.
6 changes: 5 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@
{
"files": ["*.{ts,tsx}"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["typescript-sort-keys"],
"rules": {
"typescript-sort-keys/interface": 2,
"typescript-sort-keys/string-enum": 2,
"@typescript-eslint/no-unused-vars": 2
"@typescript-eslint/no-unused-vars": 2,
"@typescript-eslint/switch-exhaustiveness-check": 2
}
}
],
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blockchain-wallet-v4",
"version": "4.32.4",
"version": "4.32.5",
"license": "AGPL-3.0-or-later",
"private": true,
"author": {
Expand Down Expand Up @@ -126,8 +126,8 @@
"@types/redux": "3.6.0",
"@types/redux-form": "7.4.2",
"@types/styled-components": "4.0.3",
"@typescript-eslint/eslint-plugin": "2.13.0",
"@typescript-eslint/parser": "2.13.0",
"@typescript-eslint/eslint-plugin": "2.28.0",
"@typescript-eslint/parser": "2.28.0",
"babel-eslint": "10.1.0",
"babel-jest": "25.3.0",
"babel-loader": "8.1.0",
Expand Down
5 changes: 5 additions & 0 deletions packages/blockchain-info-components/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { DefaultTheme } from 'styled-components'
import { IcoMoonType } from './src/Icons/Icomoon'
import { ImageType } from './src/Images/Images'

export const Badge: StatelessComponent<any>
export const Banner: StatelessComponent<any>
export const BlockchainLoader: StatelessComponent<{
width?: string
Expand Down Expand Up @@ -69,6 +70,10 @@ export const ComponentDropdown: React.ComponentClass<{
callback?: () => void
}>

export function Color(
color: keyof DefaultTheme
): DefaultTheme[keyof DefaultTheme]

export const FontGlobalStyles: StatelessComponent<{}>
export const HeartbeatLoader: StatelessComponent<{
width?: string
Expand Down
1 change: 0 additions & 1 deletion packages/blockchain-wallet-v4-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
"src"
],
"moduleNameMapper": {
"services/(.*)": "<rootDir>/src/services/$1",
"\\.(pdf|jpg|jpeg|png|gif|eot|otf|svg|ttf|woff|woff2)$": "<rootDir>/src/__mocks__/fileMock.js",
"\\.(css|scss)$": "<rootDir>/../../node_modules/identity-obj-proxy"
}
Expand Down
155 changes: 26 additions & 129 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/en.json

Large diffs are not rendered by default.

173 changes: 35 additions & 138 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/types.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as Currency from 'blockchain-wallet-v4/src/exchange/currency'
import { add, lift, pathOr, prop, reduce } from 'ramda'
import { createDeepEqualSelector } from 'services/ReselectHelper'
import { Exchange, Remote } from 'blockchain-wallet-v4/src'
import { formatFiat } from 'core/exchange/currency'
import { RemoteDataType, SBBalancesType } from 'core/types'
import { selectors } from 'data'
import BigNumber from 'bignumber.js'
Expand Down Expand Up @@ -242,7 +242,7 @@ export const getTotalBalance = createDeepEqualSelector(
xlmBalance,
currency
) => {
const total = Currency.formatFiat(
const total = formatFiat(
Number(btcBalance) +
Number(ethBalance) +
Number(bchBalance) +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DropdownLanguageContainer extends React.PureComponent {

return (
<SimpleDropdown
color='white'
color='whiteFade900'
uppercase={false}
items={languageList}
selectedValue={currentLanguage}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Wrapper = styled.div`
display: flex;
position: relative;
flex-direction: ${props => (props.inline ? 'row' : 'column')};
margin-bottom: ${props => (props.margin ? props.margin : '10px')};
margin-bottom: ${props => (props.margin ? props.margin : '16px')};
> div {
margin-right: ${props => (props.inline ? '15px' : '0px')};
&:last-child {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ADDRESS_TYPES } from 'blockchain-wallet-v4/src/redux/payment/btc/utils'
import { ADDRESS_TYPES } from 'core/redux/payment/btc/utils'
import {
assoc,
assocPath,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,6 @@ import { SkeletonRectangle } from 'blockchain-info-components'
import React from 'react'
import SelectBoxBtc from './template'

type LinkStatePropsType = {
data: RemoteDataType<
string,
{
data: Array<AccountTypes>
}
>
supportedCoins: SupportedCoinsType
}

type Props = LinkStatePropsType

class SelectBoxBtcAddresses extends React.PureComponent<Props> {
render () {
const { data, ...rest } = this.props
Expand All @@ -42,4 +30,17 @@ const mapStateToProps = (state, ownProps) => ({
data: getData(state, ownProps)
})

export default connect(mapStateToProps)(SelectBoxBtcAddresses)
const connector = connect(mapStateToProps)

type LinkStatePropsType = {
data: RemoteDataType<
string,
{
data: Array<AccountTypes>
}
>
supportedCoins: SupportedCoinsType
}
type Props = LinkStatePropsType

export default connector(SelectBoxBtcAddresses)

0 comments on commit 8484a05

Please sign in to comment.