diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-02-20 17:27:46 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-02-21 10:53:13 +0100 |
| commit | 0fe680110e676bd71764d5fa3c9a69a87ee9a258 (patch) | |
| tree | 778f3856750d958e4321fe0f072bd389ed9be5f7 /app/components/styled/Button.js | |
| parent | 58b1b85a1719fa1573edd572e8647a9dd9aa525c (diff) | |
| download | mullvadvpn-0fe680110e676bd71764d5fa3c9a69a87ee9a258.tar.xz mullvadvpn-0fe680110e676bd71764d5fa3c9a69a87ee9a258.zip | |
Drop no longer available cursor prop
Diffstat (limited to 'app/components/styled/Button.js')
| -rw-r--r-- | app/components/styled/Button.js | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/app/components/styled/Button.js b/app/components/styled/Button.js index 2fef7361e2..c2b258c161 100644 --- a/app/components/styled/Button.js +++ b/app/components/styled/Button.js @@ -7,18 +7,10 @@ const defaultStyle = ReactXP.Styles.createViewStyle({ cursor: 'default', }); -type Props = { - style?: Object | Array<any>; - cursor?: string; -}; - -export function Button(props: Props) { - const { style, cursor, ...rest } = props; +export function Button(props: Object) { + const { style, ...rest } = props; const concreteStyle = ReactXP.Styles.combine([defaultStyle, style]); - // Can be removed when we upgrade to ReactXP 0.51 - const concreteCursor = cursor || concreteStyle.cursor || 'default'; - - return <ReactXP.Button style={concreteStyle} cursor={concreteCursor} {...rest} />; + return <ReactXP.Button style={concreteStyle} {...rest} />; } |
