diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/components/styled/AppButton.js | 4 | ||||
| -rw-r--r-- | app/components/styled/CellButton.js | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/app/components/styled/AppButton.js b/app/components/styled/AppButton.js index c1b8067d80..4b3996d3c6 100644 --- a/app/components/styled/AppButton.js +++ b/app/components/styled/AppButton.js @@ -60,7 +60,6 @@ export default class AppButton extends Component { text: string, textHoverStyle?: string, tintColor?: string, - onPress?: () => void, style?: string, disabled?: boolean, }; @@ -68,11 +67,10 @@ export default class AppButton extends Component { state = { hovered: false }; render() { - const { style, tintColor, hoverStyle, text, textHoverStyle, icon, iconStyle, onPress, disabled, ...otherProps } = this.props; + const { style, tintColor, hoverStyle, text, textHoverStyle, icon, iconStyle, disabled, ...otherProps } = this.props; return ( <Button style={[ styles.cell, style, this.state.hovered ? [styles.hover, hoverStyle] : null ]} - onPress={ onPress } onHoverStart={() => !disabled ? this.setState({ hovered: true }) : null } onHoverEnd={() => !disabled ? this.setState({ hovered: false }) : null } disabled={ disabled } diff --git a/app/components/styled/CellButton.js b/app/components/styled/CellButton.js index 84971025b9..f805c089c4 100644 --- a/app/components/styled/CellButton.js +++ b/app/components/styled/CellButton.js @@ -66,18 +66,16 @@ export default class CellButton extends Component { text: string, subtext?: string, tintColor?: string, - onPress?: () => void, style?: string }; state = { hovered: false }; render() { - const { style, tintColor, hoverStyle, text, subtext, subtextStyle, icon, iconStyle, onPress, ...otherProps } = this.props; + const { style, tintColor, hoverStyle, text, subtext, subtextStyle, icon, iconStyle, ...otherProps } = this.props; return ( <Button style={[ styles.cell, style, this.state.hovered ? [styles.hover, hoverStyle] : null ]} - onPress={ onPress } onHoverStart={() => this.setState({ hovered: true })} onHoverEnd={() => this.setState({ hovered: false })} {...otherProps}> |
