diff --git a/package.json b/package.json index 813463ae..68711621 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,6 @@ "flow": "flow", "lint": "eslint src webpack .storybook", "postinstall": "bash ./scripts/postinstall.sh", - "precommit": "lint-staged", "prettier": "prettier --write \"{src,webpack,.storybook}/**/*.js\"", "publish-storybook": "bash ./scripts/publish-storybook.sh", "release": "build", @@ -22,13 +21,6 @@ "storybook": "NODE_ENV=development STORYBOOK_ENV=1 start-storybook -s ./static -p 4444", "trans": "node scripts/trans" }, - "lint-staged": { - "*.js": [ - "eslint --fix", - "prettier --write", - "git add" - ] - }, "electronWebpack": { "title": true, "renderer": { @@ -139,7 +131,6 @@ "husky": "^0.14.3", "jest": "^22.4.3", "js-yaml": "^3.10.0", - "lint-staged": "^7.0.4", "node-loader": "^0.6.0", "prettier": "^1.12.1", "react-hot-loader": "^4.1.0", diff --git a/src/components/SelectCurrency/index.js b/src/components/SelectCurrency/index.js index 0ceb6770..249b0cb5 100644 --- a/src/components/SelectCurrency/index.js +++ b/src/components/SelectCurrency/index.js @@ -32,10 +32,11 @@ const currencies = listCryptoCurrencies().sort((a, b) => a.name.localeCompare(b. type Props = { onChange: Function, value?: CryptoCurrency, + placeholder: string, t: T, } -const SelectCurrency = ({ onChange, value, t, ...props }: Props) => ( +const SelectCurrency = ({ onChange, value, t, placeholder, ...props }: Props) => ( props.onChangeCurrency(item.data)} - renderSelected={item => item.name} - items={currencies} - value={ - props.currency ? currencies.find(c => c.key === get(props, 'currency.coinType')) : null - } + onChange={props.onChangeCurrency} + value={props.currency} /> ) diff --git a/src/helpers/btc.js b/src/helpers/btc.js index 0cddb6bb..bdef2643 100644 --- a/src/helpers/btc.js +++ b/src/helpers/btc.js @@ -17,7 +17,7 @@ export const networks = { ...bitcoin.networks.bitcoin, family: 1, }, - testnet: { + bitcoin_testnet: { ...bitcoin.networks.testnet, family: 1, },