-
- }
+
diff --git a/packages/fether-react/src/assets/sass/components/_account.scss b/packages/fether-react/src/assets/sass/components/_account.scss
index dd6d9bb0..a5a8f370 100644
--- a/packages/fether-react/src/assets/sass/components/_account.scss
+++ b/packages/fether-react/src/assets/sass/components/_account.scss
@@ -39,6 +39,7 @@
.account_name {
color: $black;
font-weight: 500;
+ margin-bottom: 0.1rem;
}
.account_address {
diff --git a/packages/fether-react/src/stores/sendStore.spec.js b/packages/fether-react/src/stores/sendStore.spec.js
index c0d8113c..3eb0bab6 100644
--- a/packages/fether-react/src/stores/sendStore.spec.js
+++ b/packages/fether-react/src/stores/sendStore.spec.js
@@ -37,13 +37,6 @@ jest.mock('./parityStore', () => ({
}
}));
-jest.mock('./tokensStore', () => ({
- tokens: {
- ETH: { decimals: 18 },
- foo: { decimals: 18 }
- }
-}));
-
const mockTx = {
amount: 0.01, // In Ether or in token
gasPrice: 4, // in Gwei
@@ -117,9 +110,13 @@ describe('method send', () => {
sendStore.setTx(mockTx);
});
- test.skip('should call transfer$ if the token is Erc20 and subscribe to it', () => {
+ test('should call makeContract$ if the token is Erc20 ', () => {
sendStore.send(mockErc20Token);
- expect(sendStore.contract.transfer$).toHaveBeenCalled();
+ expect(lightJs.makeContract$).toHaveBeenCalled();
+ });
+
+ test.skip('should call transfer$ if the token is Erc20 and subscribe to it', () => {
+ // TODO
});
test('should call post$ if the token is ETH and subscribe to it', () => {
diff --git a/packages/fether-ui/src/AccountCard/Address/Address.js b/packages/fether-ui/src/AccountCard/Address/Address.js
index 9c1c5edb..7aa7ab89 100644
--- a/packages/fether-ui/src/AccountCard/Address/Address.js
+++ b/packages/fether-ui/src/AccountCard/Address/Address.js
@@ -18,7 +18,7 @@ export const Address = ({ address, short, ...otherProps }) => (
address
)
) : (
-
+
)}
);
diff --git a/packages/fether-ui/src/ClickToCopy/ClickToCopy.js b/packages/fether-ui/src/ClickToCopy/ClickToCopy.js
index dad28243..b6822c34 100644
--- a/packages/fether-ui/src/ClickToCopy/ClickToCopy.js
+++ b/packages/fether-ui/src/ClickToCopy/ClickToCopy.js
@@ -38,7 +38,7 @@ export class ClickToCopy extends PureComponent {
handleResetCopied = () => this.setState({ copied: false });
render () {
- const { children, label, ...otherProps } = this.props;
+ const { children, label, textToCopy, ...otherProps } = this.props;
const { copied } = this.state;
return (
diff --git a/packages/fether-ui/src/Form/Field/Field.js b/packages/fether-ui/src/Form/Field/Field.js
index b1681714..ae6350cd 100644
--- a/packages/fether-ui/src/Form/Field/Field.js
+++ b/packages/fether-ui/src/Form/Field/Field.js
@@ -21,7 +21,9 @@ export const Field = ({
content={meta && (meta.error || meta.submitError)}
inverted
on='click'
- open={meta && !meta.pristine && !meta.valid && !meta.dirtySinceLastSubmit}
+ open={
+ !!meta && !meta.pristine && !meta.valid && !meta.dirtySinceLastSubmit
+ }
position='top center'
size='mini'
trigger={