chore: flowconfig inputs

refactor: hover state for transaction item styles
refactor: send view bug where deleting 0 from amount would crash the app
This commit is contained in:
André Neves 2019-01-10 22:38:57 -05:00
parent 9a8db79924
commit 4dc9c6a730
3 changed files with 10 additions and 5 deletions

View File

@ -1,7 +1,6 @@
[ignore]
.*/node_modules/polished/.*
./__tests__
./__tests__/
[include]

View File

@ -23,7 +23,7 @@ const Wrapper = styled(RowComponent)`
cursor: pointer;
&:hover {
background-color: ${props => props.theme.colors.transactionsItemHovered};
background-color: #101010;
}
`;

View File

@ -121,9 +121,15 @@ export class SendView extends PureComponent<Props, State> {
}
handleChange = (field: string) => (value: string) => {
this.setState(() => ({
[field]: value,
}));
if (field === 'amount') {
if (value !== '') {
this.setState(() => ({
[field]: value,
}));
}
} else {
this.setState(() => ({ [field]: value }));
}
};
handleChangeFeeType = (value: string) => {