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:
parent
9a8db79924
commit
4dc9c6a730
|
@ -1,7 +1,6 @@
|
|||
[ignore]
|
||||
.*/node_modules/polished/.*
|
||||
./__tests__
|
||||
./__tests__/
|
||||
|
||||
[include]
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ const Wrapper = styled(RowComponent)`
|
|||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background-color: ${props => props.theme.colors.transactionsItemHovered};
|
||||
background-color: #101010;
|
||||
}
|
||||
`;
|
||||
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue