diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-02-16 14:11:34 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-02-20 17:48:28 +0100 |
| commit | 2c741a45b85ec334c6c09be01f3062065c998265 (patch) | |
| tree | dea0731722ebbde98157f2798d3f33c41f2ded08 /app/components/styled/Button.js | |
| parent | f58b1790b50abf340d8567b23b329ee9c0c14e3b (diff) | |
| download | mullvadvpn-2c741a45b85ec334c6c09be01f3062065c998265.tar.xz mullvadvpn-2c741a45b85ec334c6c09be01f3062065c998265.zip | |
Fix flow annotations to work on flow v0.66
Diffstat (limited to 'app/components/styled/Button.js')
| -rw-r--r-- | app/components/styled/Button.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/components/styled/Button.js b/app/components/styled/Button.js index 59d2371480..2fef7361e2 100644 --- a/app/components/styled/Button.js +++ b/app/components/styled/Button.js @@ -7,7 +7,12 @@ const defaultStyle = ReactXP.Styles.createViewStyle({ cursor: 'default', }); -export function Button(props: *) { +type Props = { + style?: Object | Array<any>; + cursor?: string; +}; + +export function Button(props: Props) { const { style, cursor, ...rest } = props; const concreteStyle = ReactXP.Styles.combine([defaultStyle, style]); |
