diff --git a/.circleci/config.yml b/.circleci/config.yml
index 882d6e4..6baf59f 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -42,7 +42,4 @@ workflows:
version: 2
test:
jobs:
- - test:
- filters:
- branches:
- only: develop
+ - test
diff --git a/.eslintignore b/.eslintignore
new file mode 100644
index 0000000..e8e7d69
--- /dev/null
+++ b/.eslintignore
@@ -0,0 +1 @@
+flow-custom-typedefs/*.js
\ No newline at end of file
diff --git a/.flowconfig b/.flowconfig
index f2d95fd..945b564 100644
--- a/.flowconfig
+++ b/.flowconfig
@@ -1,11 +1,12 @@
[ignore]
.*/node_modules/polished/.*
-./__tests__
+./__tests__/**.js
[include]
[libs]
flow-typed
+flow-custom-typedefs
[lints]
diff --git a/app/components/button.js b/app/components/button.js
index d867613..f3291cf 100644
--- a/app/components/button.js
+++ b/app/components/button.js
@@ -76,6 +76,7 @@ type Props = {
icon?: string | null,
className?: string,
isLoading?: boolean,
+ id?: string,
};
export const Button = ({
@@ -123,4 +124,5 @@ Button.defaultProps = {
disabled: false,
className: '',
isLoading: false,
+ id: '',
};
diff --git a/app/components/column.js b/app/components/column.js
index 7f80ede..44b0e0a 100644
--- a/app/components/column.js
+++ b/app/components/column.js
@@ -1,8 +1,7 @@
// @flow
-import React from 'react';
+import React, { type Node, type ElementProps } from 'react';
import styled from 'styled-components';
-import type { Node, ElementProps } from 'react';
const Flex = styled.div`
display: flex;
@@ -22,7 +21,7 @@ type Props = {
};
export const ColumnComponent = ({ children, ...props }: Props) => (
- {React.Children.map(children, ch => ch)}
+ {React.Children.map(children, (ch: Node) => ch)}
);
ColumnComponent.defaultProps = {
diff --git a/app/components/confirm-dialog.js b/app/components/confirm-dialog.js
index d8543d0..3ac980c 100644
--- a/app/components/confirm-dialog.js
+++ b/app/components/confirm-dialog.js
@@ -80,7 +80,7 @@ export const ConfirmDialogComponent = ({
closeOnEsc={false}
>
{toggle => (
-
+
diff --git a/app/components/dropdown.js b/app/components/dropdown.js
index c90ff91..bc10e1b 100644
--- a/app/components/dropdown.js
+++ b/app/components/dropdown.js
@@ -13,10 +13,9 @@ import truncateAddress from '../utils/truncateAddress';
/* eslint-disable max-len */
const MenuWrapper = styled.div`
- background-image: ${props => `linear-gradient(to right, ${darken(
- 0.05,
- props.theme.colors.activeItem,
- )}, ${props.theme.colors.activeItem})`};
+ background-image: ${props => `linear-gradient(to right, ${darken(0.05, props.theme.colors.activeItem)}, ${
+ props.theme.colors.activeItem
+ })`};
border-radius: ${props => props.theme.boxBorderRadius};
margin-left: -10px;
max-width: 400px;
@@ -56,7 +55,7 @@ const MenuItem = styled.button`
const OptionItem = styled(MenuItem)`
&:hover {
- background-color: #F9D114;
+ background-color: #f9d114;
}
`;
@@ -100,9 +99,7 @@ export class DropdownComponent extends Component {
} = this.props;
const body = [
- this.setState(() => ({ isOpen: false }))}
- >
+ this.setState(() => ({ isOpen: false }))}>
{label && (