summaryrefslogtreecommitdiffhomepage
path: root/app/components
diff options
context:
space:
mode:
authoranderklander <anderklander@gmail.com>2018-02-14 20:59:20 +0100
committeranderklander <anderklander@gmail.com>2018-02-15 16:02:02 +0100
commit86a28e957d2facd1f31daf072644c06de8bb05ee (patch)
tree3a6a290ed36663558293f6c8fc13d9ed213e9f69 /app/components
parentb63ef2f6ba51c30bae6c07a0e6cff3bc3d4d24ce (diff)
downloadmullvadvpn-86a28e957d2facd1f31daf072644c06de8bb05ee.tar.xz
mullvadvpn-86a28e957d2facd1f31daf072644c06de8bb05ee.zip
Renamed functions
Diffstat (limited to 'app/components')
-rw-r--r--app/components/styled/AppButton.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/components/styled/AppButton.js b/app/components/styled/AppButton.js
index de92c1fb8c..d57775ef06 100644
--- a/app/components/styled/AppButton.js
+++ b/app/components/styled/AppButton.js
@@ -106,8 +106,8 @@ export default class BaseButton extends Component {
state = { hovered: false };
- textColor = () => this.state.hovered ? styles.white80 : styles.white;
- iconTintColor = () => this.state.hovered ? styles.white80 : styles.white;
+ textStyle = () => this.state.hovered ? styles.white80 : styles.white;
+ iconStyle = () => this.state.hovered ? styles.white80 : styles.white;
backgroundStyle = () => this.state.hovered ? styles.white80 : styles.white;
onHoverStart = () => !this.props.disabled ? this.setState({ hovered: true }) : null;
@@ -125,16 +125,16 @@ export default class BaseButton extends Component {
let updatedProps = {};
if(node.type.name === 'Label') {
- updatedProps = { style: this.textColor() };
+ updatedProps = { style: this.textStyle() };
}
if(node.type.name === 'Icon') {
- updatedProps = { style: this.iconTintColor() };
+ updatedProps = { style: this.iconStyle() };
}
return React.cloneElement(node, updatedProps);
} else {
- return <Label style={this.textColor()}>{children}</Label>;
+ return <Label style={this.textStyle()}>{children}</Label>;
}
})
}